From 1e6c43a1c570ee285a62cb1d6476399f0cf3cf91 Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Fri, 10 Jun 2022 00:24:01 +0000 Subject: [PATCH] fix(rmrk): accept_resource_removal --- --- a/pallets/proxy-rmrk-core/src/lib.rs +++ b/pallets/proxy-rmrk-core/src/lib.rs @@ -771,7 +771,12 @@ misc::CollectionType::Resource, )?; - >::burn(&resource_collection, &cross_sender, rmrk_resource_id.into()) + let resource_data = + >::get((resource_collection_id, resource_id)).ok_or(>::ResourceDoesntExist)?; + + let resource_owner = resource_data.owner; + + >::burn(&resource_collection, &resource_owner, rmrk_resource_id.into()) .map_err(Self::map_unique_err_to_proxy)?; Self::deposit_event(Event::::ResourceRemovalAccepted { -- gitstuff