From 7f00cfc84d9c79ae10194505db1191b9ff91ce41 Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Thu, 09 Jun 2022 19:07:43 +0000 Subject: [PATCH] feat(rmrk): benchmark mint_nft --- --- a/pallets/proxy-rmrk-core/src/benchmarking.rs +++ b/pallets/proxy-rmrk-core/src/benchmarking.rs @@ -6,7 +6,7 @@ traits::{Currency, Get}, BoundedVec, }; -use sp_runtime::traits::AccountIdLookup; +use sp_runtime::Permill; use up_data_structs::*; @@ -56,4 +56,23 @@ let caller: T::AccountId = account("caller", 0, SEED); let collection_id = create_max_collection::(&caller)?; }: _(RawOrigin::Signed(caller), collection_id) + + mint_nft { + let caller: T::AccountId = account("caller", 0, SEED); + let collection_id = create_max_collection::(&caller)?; + let owner = caller.clone(); + + let royalty_recipient = Some(caller.clone()); + let royalty_amount = Some(Permill::from_percent(25)); + let metadata = create_data(); + let transferable = true; + }: _( + RawOrigin::Signed(caller), + owner, + collection_id, + royalty_recipient, + royalty_amount, + metadata, + transferable + ) } -- gitstuff