git.delta.rocks / unique-network / refs/commits / 66e743262c3a

difftreelog

fix(rmrk) no permissions on reject nft if isn't pending

Daniel Shiposha2022-06-10parent: #c77858a.patch.diff
in: master

1 file changed

modifiedpallets/proxy-rmrk-core/src/lib.rsdiffbeforeafterboth
645 Self::get_typed_nft_collection(collection_id, misc::CollectionType::Regular)?;645 Self::get_typed_nft_collection(collection_id, misc::CollectionType::Regular)?;
646 collection.check_is_external()?;646 collection.check_is_external()?;
647
648 ensure!(
649 Self::get_nft_property_decoded(
650 collection_id,
651 nft_id,
652 RmrkProperty::PendingNftAccept
653 )?,
654 <Error<T>>::NoPermission
655 );
647656
648 Self::destroy_nft(657 Self::destroy_nft(
649 cross_sender,658 cross_sender,