--- a/pallets/refungible/src/lib.rs +++ b/pallets/refungible/src/lib.rs @@ -453,7 +453,7 @@ amount: u128, ) -> DispatchResult { if >::get((collection.id, token, owner)) == 0 { - return Err(>::MustBeTokenOwner.into()); + return Err(>::TokenValueTooLow.into()); } let total_supply = >::get((collection.id, token)) @@ -745,7 +745,7 @@ let initial_balance_from = >::get((collection.id, token, from)); if initial_balance_from == 0 { - return Err(>::MustBeTokenOwner.into()); + return Err(>::TokenValueTooLow.into()); } let updated_balance_from = initial_balance_from