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
--- a/pallets/nonfungible/src/common.rs
+++ b/pallets/nonfungible/src/common.rs
@@ -120,7 +120,7 @@
 	}
 
 	fn token_owner() -> Weight {
-		0 //<SelfWeightOf<T>>::token_owner()
+		<SelfWeightOf<T>>::token_owner()
 	}
 }
 
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
150 }150 }
151151
152 fn token_owner() -> Weight {152 fn token_owner() -> Weight {
153 0 //<SelfWeightOf<T>>::token_owner()153 <SelfWeightOf<T>>::token_owner()
154 }154 }
155}155}
156156