From 9bedf1f5e6c855d2b6db6653a627051415059f15 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Thu, 04 Nov 2021 14:25:17 +0000 Subject: [PATCH] fix: check for token existence in RFT admin approve --- --- a/pallets/refungible/src/lib.rs +++ b/pallets/refungible/src/lib.rs @@ -492,7 +492,7 @@ if >::get((collection.id, token, sender.as_sub())) < amount { ensure!( - collection.ignores_owned_amount(sender)?, + collection.ignores_owned_amount(sender)? && Self::token_exists(collection, token), >::CantApproveMoreThanOwned ); } -- gitstuff