From ff113261a7a1b86887d4859b980568378e7f868f Mon Sep 17 00:00:00 2001 From: PraetorP Date: Wed, 19 Apr 2023 13:57:06 +0000 Subject: [PATCH] chore: typos & fmt --- --- a/pallets/fungible/src/benchmarking.rs +++ b/pallets/fungible/src/benchmarking.rs @@ -92,7 +92,7 @@ >::create_item(&collection, &owner, (owner_eth.clone(), 200), &Unlimited)?; }: {>::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; --- 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())?; }: {>::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; --- a/pallets/nonfungible/src/common.rs +++ b/pallets/nonfungible/src/common.rs @@ -103,7 +103,7 @@ } fn transfer_from() -> Weight { - Self::transfer() + >::checks_allowed_raw() + Self::transfer() + >::check_allowed_raw() } fn burn_from() -> Weight { --- 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, >::checks_allowed_raw()); + add_weight_to_post_info(&mut result, >::check_allowed_raw()); result } --- a/pallets/nonfungible/src/weights.rs +++ b/pallets/nonfungible/src/weights.rs @@ -43,7 +43,7 @@ fn transfer_raw() -> Weight; fn approve() -> Weight; fn approve_from() -> Weight; - fn checks_allowed_raw() -> Weight; + fn check_allowed_raw() -> Weight; fn burn_from() -> Weight; fn set_token_property_permissions(b: u32, ) -> Weight; fn set_token_properties(b: u32, ) -> Weight; @@ -254,7 +254,7 @@ } /// Storage: Nonfungible Allowance (r:1 w:0) /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen) - fn checks_allowed_raw() -> Weight { + fn check_allowed_raw() -> Weight { // Proof Size summary in bytes: // Measured: `394` // Estimated: `2532` @@ -573,7 +573,7 @@ } /// Storage: Nonfungible Allowance (r:1 w:0) /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen) - fn checks_allowed_raw() -> Weight { + fn check_allowed_raw() -> Weight { // Proof Size summary in bytes: // Measured: `394` // Estimated: `2532` -- gitstuff