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
36fn create_max_item_data<CrossAccountId: Ord>(36fn create_max_item_data<CrossAccountId: Ord>(
37 users: impl IntoIterator<Item = (CrossAccountId, u128)>,37 users: impl IntoIterator<Item = (CrossAccountId, u128)>,
38) -> CreateRefungibleExData<CrossAccountId> {38) -> CreateRefungibleExData<CrossAccountId> {
39 let const_data = create_data::<CUSTOM_DATA_LIMIT>();
40 CreateRefungibleExData {39 CreateRefungibleExData {
41 const_data,
42 users: users40 users: users
43 .into_iter()41 .into_iter()
44 .collect::<BTreeMap<_, _>>()42 .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()
 	}
 }