git.delta.rocks / unique-network / refs/commits / 2472fbfb0a20

difftreelog

fix benchmarks

Daniel Shiposha2022-10-03parent: #c1336b3.patch.diff
in: master

5 files changed

modifiedpallets/common/src/benchmarking.rsdiffbeforeafterboth
--- a/pallets/common/src/benchmarking.rs
+++ b/pallets/common/src/benchmarking.rs
@@ -116,7 +116,7 @@
 	create_collection_raw(
 		owner,
 		CollectionMode::NFT,
-		|owner, data| <Pallet<T>>::init_collection(owner, data, CollectionFlags::default()),
+		|owner: T::CrossAccountId, data| <Pallet<T>>::init_collection(owner.clone(), owner, data, CollectionFlags::default()),
 		|h| h,
 	)
 }
modifiedpallets/fungible/src/benchmarking.rsdiffbeforeafterboth
--- a/pallets/fungible/src/benchmarking.rs
+++ b/pallets/fungible/src/benchmarking.rs
@@ -31,7 +31,7 @@
 	create_collection_raw(
 		owner,
 		CollectionMode::Fungible(0),
-		<Pallet<T>>::init_collection,
+		|owner: T::CrossAccountId, data| <Pallet<T>>::init_collection(owner.clone(), owner, data),
 		FungibleHandle::cast,
 	)
 }
modifiedpallets/nonfungible/src/benchmarking.rsdiffbeforeafterboth
--- a/pallets/nonfungible/src/benchmarking.rs
+++ b/pallets/nonfungible/src/benchmarking.rs
@@ -54,7 +54,7 @@
 	create_collection_raw(
 		owner,
 		CollectionMode::NFT,
-		|owner, data| <Pallet<T>>::init_collection(owner, data, true),
+		|owner: T::CrossAccountId, data| <Pallet<T>>::init_collection(owner.clone(), owner, data, true),
 		NonfungibleHandle::cast,
 	)
 }
modifiedpallets/refungible/src/benchmarking.rsdiffbeforeafterboth
--- a/pallets/refungible/src/benchmarking.rs
+++ b/pallets/refungible/src/benchmarking.rs
@@ -62,7 +62,7 @@
 	create_collection_raw(
 		owner,
 		CollectionMode::ReFungible,
-		<Pallet<T>>::init_collection,
+		|owner: T::CrossAccountId, data| <Pallet<T>>::init_collection(owner.clone(), owner, data),
 		RefungibleHandle::cast,
 	)
 }
modifiedpallets/structure/src/benchmarking.rsdiffbeforeafterboth
32 let caller_cross = T::CrossAccountId::from_sub(caller.clone());32 let caller_cross = T::CrossAccountId::from_sub(caller.clone());
3333
34 <T as CommonConfig>::Currency::deposit_creating(&caller, T::CollectionCreationPrice::get());34 <T as CommonConfig>::Currency::deposit_creating(&caller, T::CollectionCreationPrice::get());
35 T::CollectionDispatch::create(caller_cross.clone(), CreateCollectionData {35 T::CollectionDispatch::create(caller_cross.clone(), caller_cross.clone(), CreateCollectionData {
36 mode: CollectionMode::NFT,36 mode: CollectionMode::NFT,
37 ..Default::default()37 ..Default::default()
38 })?;38 })?;