From 8cb720a7cf01f59f513e9e9b39fe71ba3615b737 Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Mon, 16 May 2022 07:42:55 +0000 Subject: [PATCH] fix: clear VariableMetaDataBasket --- --- a/pallets/unique/src/lib.rs +++ b/pallets/unique/src/lib.rs @@ -238,6 +238,11 @@ pub ReFungibleTransferBasket get(fn refungible_transfer_basket): nmap hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) TokenId, hasher(twox_64_concat) T::AccountId => Option; //#endregion + /// Variable metadata sponsoring + /// Collection id (controlled?2), token id (controlled?2) + #[deprecated] + pub VariableMetaDataBasket get(fn variable_meta_data_basket): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) TokenId => Option; + /// Approval sponsoring pub NftApproveBasket get(fn nft_approve_basket): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) TokenId => Option; pub FungibleApproveBasket get(fn fungible_approve_basket): double_map hasher(blake2_128_concat) CollectionId, hasher(twox_64_concat) T::AccountId => Option; @@ -258,6 +263,14 @@ 0 } + fn on_runtime_upgrade() -> Weight { + let limit = None; + + >::remove_all(limit); + + 0 + } + /// This method creates a Collection of NFTs. Each Token may have multiple properties encoded as an array of bytes of certain length. The initial owner of the collection is set to the address that signed the transaction and can be changed later. /// /// # Permissions -- gitstuff