Skip to content

Commit

Permalink
change to drain_prefix for nft_burn
Browse files Browse the repository at this point in the history
  • Loading branch information
bmacer committed Apr 22, 2022
1 parent fab8c5e commit 390f3c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/rmrk-core/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ where
for _ in Resources::<T>::drain_prefix((collection_id, nft_id)) {}

for ((child_collection_id, child_nft_id), _) in Children::<T>::iter_prefix((collection_id, nft_id,)) {
Pallet::<T>::remove_child((collection_id, nft_id), (child_collection_id, child_nft_id));
for _ in Children::<T>::drain_prefix((collection_id, nft_id)) {}
Self::nft_burn(child_collection_id, child_nft_id, max_recursions - 1)?;
}

Expand Down

0 comments on commit 390f3c2

Please sign in to comment.