[NFTs] Track item's metadata depositor (#13124)
* Refactor do_mint() * Track the depositor of item's metadata * Revert back the access control * On collection destroy return the metadata deposit * Clear the metadata on item burn returning the deposit * Address comments * Fix clippy * Don't return Ok on non-existing attribute removal
Showing
- substrate/frame/nfts/src/features/attributes.rs 54 additions, 51 deletionssubstrate/frame/nfts/src/features/attributes.rs
- substrate/frame/nfts/src/features/create_delete_collection.rs 7 additions, 6 deletions...trate/frame/nfts/src/features/create_delete_collection.rs
- substrate/frame/nfts/src/features/create_delete_item.rs 24 additions, 7 deletionssubstrate/frame/nfts/src/features/create_delete_item.rs
- substrate/frame/nfts/src/features/metadata.rs 45 additions, 24 deletionssubstrate/frame/nfts/src/features/metadata.rs
- substrate/frame/nfts/src/impl_nonfungibles.rs 4 additions, 2 deletionssubstrate/frame/nfts/src/impl_nonfungibles.rs
- substrate/frame/nfts/src/lib.rs 9 additions, 8 deletionssubstrate/frame/nfts/src/lib.rs
- substrate/frame/nfts/src/tests.rs 2 additions, 2 deletionssubstrate/frame/nfts/src/tests.rs
- substrate/frame/nfts/src/types.rs 16 additions, 6 deletionssubstrate/frame/nfts/src/types.rs
Please register or sign in to comment