--- a/pallets/nonfungible/src/lib.rs +++ b/pallets/nonfungible/src/lib.rs @@ -632,6 +632,10 @@ }); let stored_properties = if is_new_token { + debug_assert!(!>::contains_key(( + collection.id, + token_id + ))); TokenPropertiesT::new() } else { >::get((collection.id, token_id)) --- a/pallets/refungible/src/lib.rs +++ b/pallets/refungible/src/lib.rs @@ -575,6 +575,10 @@ }); let stored_properties = if is_new_token { + debug_assert!(!>::contains_key(( + collection.id, + token_id + ))); TokenPropertiesT::new() } else { >::get((collection.id, token_id))