From 4e0b740f5ec1735eae6f9dfb8660d8809f254256 Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Wed, 18 May 2022 17:48:27 +0000 Subject: [PATCH] fix: remove properties when item destroyed --- --- a/pallets/common/src/lib.rs +++ b/pallets/common/src/lib.rs @@ -762,6 +762,7 @@ >::remove(collection.id); >::remove_prefix((collection.id,), None); >::remove_prefix((collection.id,), None); + >::remove(collection.id); >::deposit_event(Event::CollectionDestroyed(collection.id)); Ok(()) --- a/pallets/nonfungible/src/lib.rs +++ b/pallets/nonfungible/src/lib.rs @@ -257,6 +257,7 @@ >::remove((collection.id, &token_data.owner, token)); >::insert(collection.id, burnt); >::remove((collection.id, token)); + >::remove((collection.id, token)); let old_spender = >::take((collection.id, token)); if let Some(old_spender) = old_spender { -- gitstuff