git.delta.rocks / unique-network / refs/commits / ff113261a7a1

difftreelog

chore typos & fmt

PraetorP2023-04-19parent: #c20e11e.patch.diff
in: master

5 files changed

modifiedpallets/fungible/src/benchmarking.rsdiffbeforeafterboth
--- a/pallets/fungible/src/benchmarking.rs
+++ b/pallets/fungible/src/benchmarking.rs
@@ -92,7 +92,7 @@
 		<Pallet<T>>::create_item(&collection, &owner, (owner_eth.clone(), 200), &Unlimited)?;
 	}: {<Pallet<T>>::set_allowance_from(&collection, &sender, &owner_eth, &spender, 100)?}
 
-	 check_allowed_raw {
+	check_allowed_raw {
 		bench_init!{
 			owner: sub; collection: collection(owner);
 			owner: cross_from_sub; sender: cross_sub; spender: cross_sub;
modifiedpallets/nonfungible/src/benchmarking.rsdiffbeforeafterboth
--- a/pallets/nonfungible/src/benchmarking.rs
+++ b/pallets/nonfungible/src/benchmarking.rs
@@ -146,7 +146,7 @@
 		let item = create_max_item(&collection, &owner, owner_eth.clone())?;
 	}: {<Pallet<T>>::set_allowance_from(&collection, &sender, &owner_eth, item, Some(&spender))?}
 
-	checks_allowed_raw {
+	check_allowed_raw {
 		bench_init!{
 			owner: sub; collection: collection(owner);
 			owner: cross_from_sub; sender: cross_sub; spender: cross_sub; receiver: cross_sub;
modifiedpallets/nonfungible/src/common.rsdiffbeforeafterboth
--- a/pallets/nonfungible/src/common.rs
+++ b/pallets/nonfungible/src/common.rs
@@ -103,7 +103,7 @@
 	}
 
 	fn transfer_from() -> Weight {
-		Self::transfer() + <SelfWeightOf<T>>::checks_allowed_raw()
+		Self::transfer() + <SelfWeightOf<T>>::check_allowed_raw()
 	}
 
 	fn burn_from() -> Weight {
modifiedpallets/nonfungible/src/lib.rsdiffbeforeafterboth
--- a/pallets/nonfungible/src/lib.rs
+++ b/pallets/nonfungible/src/lib.rs
@@ -1242,7 +1242,7 @@
 
 		// Allowance is reset in [`transfer`]
 		let mut result = Self::transfer(collection, from, to, token, nesting_budget);
-		add_weight_to_post_info(&mut result, <SelfWeightOf<T>>::checks_allowed_raw());
+		add_weight_to_post_info(&mut result, <SelfWeightOf<T>>::check_allowed_raw());
 		result
 	}
 
modifiedpallets/nonfungible/src/weights.rsdiffbeforeafterboth
43 fn transfer_raw() -> Weight;43 fn transfer_raw() -> Weight;
44 fn approve() -> Weight;44 fn approve() -> Weight;
45 fn approve_from() -> Weight;45 fn approve_from() -> Weight;
46 fn checks_allowed_raw() -> Weight;46 fn check_allowed_raw() -> Weight;
47 fn burn_from() -> Weight;47 fn burn_from() -> Weight;
48 fn set_token_property_permissions(b: u32, ) -> Weight;48 fn set_token_property_permissions(b: u32, ) -> Weight;
49 fn set_token_properties(b: u32, ) -> Weight;49 fn set_token_properties(b: u32, ) -> Weight;
254 }254 }
255 /// Storage: Nonfungible Allowance (r:1 w:0)255 /// Storage: Nonfungible Allowance (r:1 w:0)
256 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)256 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
257 fn checks_allowed_raw() -> Weight {257 fn check_allowed_raw() -> Weight {
258 // Proof Size summary in bytes:258 // Proof Size summary in bytes:
259 // Measured: `394`259 // Measured: `394`
260 // Estimated: `2532`260 // Estimated: `2532`
573 }573 }
574 /// Storage: Nonfungible Allowance (r:1 w:0)574 /// Storage: Nonfungible Allowance (r:1 w:0)
575 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)575 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
576 fn checks_allowed_raw() -> Weight {576 fn check_allowed_raw() -> Weight {
577 // Proof Size summary in bytes:577 // Proof Size summary in bytes:
578 // Measured: `394`578 // Measured: `394`
579 // Estimated: `2532`579 // Estimated: `2532`