git.delta.rocks / unique-network / refs/commits / 9bedf1f5e6c8

difftreelog

fix check for token existence in RFT admin approve

Yaroslav Bolyukin2021-11-04parent: #cfe76c1.patch.diff
in: master

1 file changed

modifiedpallets/refungible/src/lib.rsdiffbeforeafterboth
492492
493 if <Balance<T>>::get((collection.id, token, sender.as_sub())) < amount {493 if <Balance<T>>::get((collection.id, token, sender.as_sub())) < amount {
494 ensure!(494 ensure!(
495 collection.ignores_owned_amount(sender)?,495 collection.ignores_owned_amount(sender)? && Self::token_exists(collection, token),
496 <CommonError<T>>::CantApproveMoreThanOwned496 <CommonError<T>>::CantApproveMoreThanOwned
497 );497 );
498 }498 }