--- a/pallets/refungible/src/lib.rs +++ b/pallets/refungible/src/lib.rs @@ -424,10 +424,8 @@ >::insert(collection.id, burnt); >::remove((collection.id, token_id)); >::remove((collection.id, token_id)); -<<<<<<< HEAD - >::remove_prefix((collection.id, token_id), None); - >::remove_prefix((collection.id, token_id), None); - + let _ = >::clear_prefix((collection.id, token_id), u32::MAX, None); + let _ = >::clear_prefix((collection.id, token_id), u32::MAX, None); >::deposit_log( ERC721Events::Transfer { from: *owner.as_eth(), @@ -436,11 +434,6 @@ } .to_log(collection_id_to_address(collection.id)), ); -======= - let _ = >::clear_prefix((collection.id, token_id), u32::MAX, None); - let _ = >::clear_prefix((collection.id, token_id), u32::MAX, None); - // TODO: ERC721 transfer event ->>>>>>> 5d9665e0... refactor: switch to new prefix removal methods Ok(()) }