From f22f5d283e270e19fd6480a3373b718707fc7576 Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Thu, 09 Jun 2022 15:51:03 +0000 Subject: [PATCH] feat(rmrk): benchmark change_collection_issuer --- --- a/pallets/proxy-rmrk-core/src/benchmarking.rs +++ b/pallets/proxy-rmrk-core/src/benchmarking.rs @@ -6,6 +6,7 @@ traits::{Currency, Get}, BoundedVec, }; +use sp_runtime::traits::AccountIdLookup; use up_data_structs::*; @@ -42,4 +43,12 @@ let caller = account("caller", 0, SEED); let collection_id = create_max_collection::(&caller)?; }: _(RawOrigin::Signed(caller), collection_id) + + change_collection_issuer { + let caller: T::AccountId = account("caller", 0, SEED); + let collection_id = create_max_collection::(&caller)?; + let new_owner: T::AccountId = account("new_owner", 0, SEED); + + let new_owner_source = T::Lookup::unlookup(new_owner); + }: _(RawOrigin::Signed(caller), collection_id, new_owner_source) } -- gitstuff