-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Uniques
burn
extrinsic does not clear Instance metadata and attributes during execution
#9207
Comments
Uniques
burn
extrinsic does not clear instance metadata and attributes during executionUniques
burn
extrinsic does not clear Instance metadata and attributes during execution
I think we should also introduce new |
Thanks for opening up the issue here, however the behavior with metadata is intended. Here is some historical context: When developing the Assets pallet, we decided to keep the asset metadata as a separate set of functionalities from the underlying assets themselves. Asset metadata is strictly a "user friendly" feature, and not one that is required for any on-chain consensus, and thus from the perspective of a very strict runtime engineer, it is not necessary. However, such metadata can be useful for UX, so by separating these functions, we allow the runtime developer to potentially opt in or opt out of these additional state and weight for using the metadata. This same approach and API was brought to the Uniques pallet during development. While it is arguable that metadata is much more relevant for NFTs, keeping a familiar API also makes sense. So, in addition to calling |
Instance attributes and metadata should be cleared during the
burn
extrinsic execution. https://github.com/paritytech/substrate/blob/master/frame/uniques/src/lib.rs#L473The text was updated successfully, but these errors were encountered: