git.delta.rocks / unique-network / refs/commits / 2d2eac8ef8b2

difftreelog

chore fix `token_owner` weight

Grigoriy Simonov2022-08-11parent: #c7669db.patch.diff
in: master

3 files changed

modifiedpallets/nonfungible/src/common.rsdiffbeforeafterboth
120 }120 }
121121
122 fn token_owner() -> Weight {122 fn token_owner() -> Weight {
123 0 //<SelfWeightOf<T>>::token_owner()123 <SelfWeightOf<T>>::token_owner()
124 }124 }
125}125}
126126
modifiedpallets/refungible/src/benchmarking.rsdiffbeforeafterboth
--- a/pallets/refungible/src/benchmarking.rs
+++ b/pallets/refungible/src/benchmarking.rs
@@ -36,9 +36,7 @@
 fn create_max_item_data<CrossAccountId: Ord>(
 	users: impl IntoIterator<Item = (CrossAccountId, u128)>,
 ) -> CreateRefungibleExData<CrossAccountId> {
-	let const_data = create_data::<CUSTOM_DATA_LIMIT>();
 	CreateRefungibleExData {
-		const_data,
 		users: users
 			.into_iter()
 			.collect::<BTreeMap<_, _>>()
modifiedpallets/refungible/src/common.rsdiffbeforeafterboth
--- a/pallets/refungible/src/common.rs
+++ b/pallets/refungible/src/common.rs
@@ -150,7 +150,7 @@
 	}
 
 	fn token_owner() -> Weight {
-		0 //<SelfWeightOf<T>>::token_owner()
+		<SelfWeightOf<T>>::token_owner()
 	}
 }