-
Notifications
You must be signed in to change notification settings - Fork 36
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
Bug/93 update vec to bounded vec #95
Conversation
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.
Great stuff, few minor comments.
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.
No longer needed comments can be removed and one request on the burn_nft
if it is plausible.
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.
Remove unused code. I still think the drain_prefix
should be used for the burn_nft
function. Maybe @h4x3rotab can clarify if my suggestion is optimal in this situation. Overall looks good though just a few minor changes.
@HashWarlock fixed in 390f3c2 Cleaned up all the dead code mentioned. |
The |
Right, but We need to iterate through the Children to get the Nfts to burn. We can use rmrk-substrate/pallets/rmrk-core/src/functions.rs Lines 317 to 331 in ead0e1e
|
Maybe I'm confused. I was thinking this would be fine since we would get the child NFTs as we iterate the
|
I spoke with @h4x3rotab and the suggestion to replace Here is an example of this on line 319:
Instead we can change it to this and avoid iterating through the Resources:
|
Will merge to avoid conflicts, if any adjustments required please create new issue. |
addresses #93. We may be able to alias some of the generics to make it a bit more readable, but this should pass tests for all of equip, market and core, and should successfully remove #[pallet::without_storage_info]