-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MTG-294] reusing the existing code for the finalize tree with collection #10
[MTG-294] reusing the existing code for the finalize tree with collection #10
Conversation
programs/bubblegum/program/src/processor/finalize_tree_with_root_and_collection.rs
Outdated
Show resolved
Hide resolved
programs/bubblegum/program/src/processor/finalize_tree_with_root_and_collection.rs
Outdated
Show resolved
Hide resolved
|
||
finalize_tree( | ||
let mut accs: FinalizeTreeWithRoot<'info> = FinalizeTreeWithRoot { | ||
tree_authority: ctx.accounts.tree_authority.to_owned(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those .to_owned
just copy/clone underlying data each time. It might be fine, though it might be not optimal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How should we better do this?
programs/bubblegum/program/src/processor/finalize_tree_with_root_and_collection.rs
Outdated
Show resolved
Hide resolved
…wn the call stack
Great work, thank you! |
463851b
into
feature/finalize-tree-with-collection
Reusing the existing code combining the validation from the mint to collection and finalize tree with root logic