difftreelog
chore typos & fmt
in: master
5 files changed
pallets/fungible/src/benchmarking.rsdiffbeforeafterbothno syntactic changes
pallets/nonfungible/src/benchmarking.rsdiffbeforeafterboth146 let item = create_max_item(&collection, &owner, owner_eth.clone())?;146 let item = create_max_item(&collection, &owner, owner_eth.clone())?;147 }: {<Pallet<T>>::set_allowance_from(&collection, &sender, &owner_eth, item, Some(&spender))?}147 }: {<Pallet<T>>::set_allowance_from(&collection, &sender, &owner_eth, item, Some(&spender))?}148148149 checks_allowed_raw {149 check_allowed_raw {150 bench_init!{150 bench_init!{151 owner: sub; collection: collection(owner);151 owner: sub; collection: collection(owner);152 owner: cross_from_sub; sender: cross_sub; spender: cross_sub; receiver: cross_sub;152 owner: cross_from_sub; sender: cross_sub; spender: cross_sub; receiver: cross_sub;pallets/nonfungible/src/common.rsdiffbeforeafterboth103 }103 }104104105 fn transfer_from() -> Weight {105 fn transfer_from() -> Weight {106 Self::transfer() + <SelfWeightOf<T>>::checks_allowed_raw()106 Self::transfer() + <SelfWeightOf<T>>::check_allowed_raw()107 }107 }108108109 fn burn_from() -> Weight {109 fn burn_from() -> Weight {pallets/nonfungible/src/lib.rsdiffbeforeafterboth124212421243 // Allowance is reset in [`transfer`]1243 // Allowance is reset in [`transfer`]1244 let mut result = Self::transfer(collection, from, to, token, nesting_budget);1244 let mut result = Self::transfer(collection, from, to, token, nesting_budget);1245 add_weight_to_post_info(&mut result, <SelfWeightOf<T>>::checks_allowed_raw());1245 add_weight_to_post_info(&mut result, <SelfWeightOf<T>>::check_allowed_raw());1246 result1246 result1247 }1247 }12481248pallets/nonfungible/src/weights.rsdiffbeforeafterboth43 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`