--- 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 + ) }