From 66e743262c3a75d566ebf73211b8c4f0fddc081f Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Fri, 10 Jun 2022 13:11:48 +0000 Subject: [PATCH] fix(rmrk): no permissions on reject nft if isn't pending --- --- a/pallets/proxy-rmrk-core/src/lib.rs +++ b/pallets/proxy-rmrk-core/src/lib.rs @@ -645,6 +645,15 @@ Self::get_typed_nft_collection(collection_id, misc::CollectionType::Regular)?; collection.check_is_external()?; + ensure!( + Self::get_nft_property_decoded( + collection_id, + nft_id, + RmrkProperty::PendingNftAccept + )?, + >::NoPermission + ); + Self::destroy_nft( cross_sender, collection_id, -- gitstuff