git.delta.rocks / unique-network / refs/commits / 7f00cfc84d9c

difftreelog

feat(rmrk) benchmark mint_nft

Daniel Shiposha2022-06-09parent: #87988d2.patch.diff
in: master

1 file changed

modifiedpallets/proxy-rmrk-core/src/benchmarking.rsdiffbeforeafterboth
6 traits::{Currency, Get},6 traits::{Currency, Get},
7 BoundedVec,7 BoundedVec,
8};8};
9use sp_runtime::traits::AccountIdLookup;9use sp_runtime::Permill;
1010
11use up_data_structs::*;11use up_data_structs::*;
1212
57 let collection_id = create_max_collection::<T>(&caller)?;57 let collection_id = create_max_collection::<T>(&caller)?;
58 }: _(RawOrigin::Signed(caller), collection_id)58 }: _(RawOrigin::Signed(caller), collection_id)
59
60 mint_nft {
61 let caller: T::AccountId = account("caller", 0, SEED);
62 let collection_id = create_max_collection::<T>(&caller)?;
63 let owner = caller.clone();
64
65 let royalty_recipient = Some(caller.clone());
66 let royalty_amount = Some(Permill::from_percent(25));
67 let metadata = create_data();
68 let transferable = true;
69 }: _(
70 RawOrigin::Signed(caller),
71 owner,
72 collection_id,
73 royalty_recipient,
74 royalty_amount,
75 metadata,
76 transferable
77 )
59}78}
6079