-
Notifications
You must be signed in to change notification settings - Fork 2.6k
WIP: [NFTs] Simplify collection creation and item mint #13572
Conversation
What about make the |
Making it optional, unfortunately, doesn't remove the requirement to have a lot of boilerplate code |
another possible solution would be to have two traits: |
Understood, I think it is acceptable because create and mutate collections ususally not high-frequent operations |
Sounds cool! |
# Conflicts: # frame/nfts/src/types.rs
Thank you for help! I see you're working on improving I've refactored my pallet to nonfungibles_v2 interface again, I have few feedbacks: nonfungibles_v2 interface
Off-topic: I propose separate read and write metadata from |
Off-topic: just my opinion, |
I would love for help if you can give me some directions, those changes I think shouldn't difficult to me |
Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions. |
When trying to create a collection via traits, it requires providing the CollectionConfig param. This requires adding a lot of boilerplate code, which annoys when dealing with simple use cases.
This PR adds a new
CreateSimplified
trait that doesn't have the config param and puts the default collection's config.Additionally, I made the item's config param optional in the mint_into() method