Skip to content

refactor: remove unnecessary clones when constructing notes#3

Open
VolodymyrBg wants to merge 2 commits intopartylikeits1983:mainfrom
VolodymyrBg:refactor/remove-note-clones
Open

refactor: remove unnecessary clones when constructing notes#3
VolodymyrBg wants to merge 2 commits intopartylikeits1983:mainfrom
VolodymyrBg:refactor/remove-note-clones

Conversation

@VolodymyrBg
Copy link
Copy Markdown

Removed redundant clone calls when building NoteRecipient and Note in the swap and notes helpers. Now pass ownership of NoteScript, NoteInputs and NoteAssets directly into NoteRecipient::new and Note::new, avoiding extra allocations and copies. The behavior of note creation remains unchanged, but the implementation is leaner and consistent with other note helpers in the codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant