difftreelog
fix remove properties when item destroyed
in: master
2 files changed
pallets/common/src/lib.rsdiffbeforeafterboth--- a/pallets/common/src/lib.rs
+++ b/pallets/common/src/lib.rs
@@ -762,6 +762,7 @@
<AdminAmount<T>>::remove(collection.id);
<IsAdmin<T>>::remove_prefix((collection.id,), None);
<Allowlist<T>>::remove_prefix((collection.id,), None);
+ <CollectionProperties<T>>::remove(collection.id);
<Pallet<T>>::deposit_event(Event::CollectionDestroyed(collection.id));
Ok(())
pallets/nonfungible/src/lib.rsdiffbeforeafterboth257 <Owned<T>>::remove((collection.id, &token_data.owner, token));257 <Owned<T>>::remove((collection.id, &token_data.owner, token));258 <TokensBurnt<T>>::insert(collection.id, burnt);258 <TokensBurnt<T>>::insert(collection.id, burnt);259 <TokenData<T>>::remove((collection.id, token));259 <TokenData<T>>::remove((collection.id, token));260 <TokenProperties<T>>::remove((collection.id, token));260 let old_spender = <Allowance<T>>::take((collection.id, token));261 let old_spender = <Allowance<T>>::take((collection.id, token));261262262 if let Some(old_spender) = old_spender {263 if let Some(old_spender) = old_spender {