git.delta.rocks / unique-network / refs/commits / 8cb720a7cf01

difftreelog

fix clear VariableMetaDataBasket

Daniel Shiposha2022-05-16parent: #7676807.patch.diff
in: master

1 file changed

modifiedpallets/unique/src/lib.rsdiffbeforeafterboth
238 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<T::BlockNumber>;238 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<T::BlockNumber>;
239 //#endregion239 //#endregion
240
241 /// Variable metadata sponsoring
242 /// Collection id (controlled?2), token id (controlled?2)
243 #[deprecated]
244 pub VariableMetaDataBasket get(fn variable_meta_data_basket): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) TokenId => Option<T::BlockNumber>;
240245
241 /// Approval sponsoring246 /// Approval sponsoring
242 pub NftApproveBasket get(fn nft_approve_basket): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) TokenId => Option<T::BlockNumber>;247 pub NftApproveBasket get(fn nft_approve_basket): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) TokenId => Option<T::BlockNumber>;
258 0263 0
259 }264 }
265
266 fn on_runtime_upgrade() -> Weight {
267 let limit = None;
268
269 <VariableMetaDataBasket<T>>::remove_all(limit);
270
271 0
272 }
260273
261 /// 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.274 /// 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.
262 ///275 ///