difftreelog
fix debug check if new token doesnt have any properties
in: master
2 files changed
pallets/nonfungible/src/lib.rsdiffbeforeafterboth632 });632 });633633634 let stored_properties = if is_new_token {634 let stored_properties = if is_new_token {635 debug_assert!(!<TokenProperties<T>>::contains_key((636 collection.id,637 token_id638 )));635 TokenPropertiesT::new()639 TokenPropertiesT::new()636 } else {640 } else {637 <TokenProperties<T>>::get((collection.id, token_id))641 <TokenProperties<T>>::get((collection.id, token_id))pallets/refungible/src/lib.rsdiffbeforeafterboth575 });575 });576576577 let stored_properties = if is_new_token {577 let stored_properties = if is_new_token {578 debug_assert!(!<TokenProperties<T>>::contains_key((579 collection.id,580 token_id581 )));578 TokenPropertiesT::new()582 TokenPropertiesT::new()579 } else {583 } else {580 <TokenProperties<T>>::get((collection.id, token_id))584 <TokenProperties<T>>::get((collection.id, token_id))