From 91fceee270b1a6d1993593a9c11eef1d46efe825 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Thu, 25 Feb 2021 15:02:16 +0000 Subject: [PATCH] fix: clean sponsoring basket after item is burned --- --- a/pallets/nft/src/lib.rs +++ b/pallets/nft/src/lib.rs @@ -1788,6 +1788,7 @@ // Burn the token completely if this was the last (only) owner if owner_count == 0 { >::remove(collection_id, item_id); + >::remove(collection_id, item_id); } else { >::insert(collection_id, item_id, token); @@ -1810,6 +1811,7 @@ .ok_or(Error::::NumOverflow)?; >::insert(collection_id, item.owner.clone(), new_balance); >::remove(collection_id, item_id); + >::remove(collection_id, item_id); Ok(()) } -- gitstuff