@@ -52,19 +52,19 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
5252 Weight::from_ref_time({{ underscore benchmark.base_weight }} )
5353 {{ #each benchmark.component_weight as |cw |}}
5454 // Standard Error: {{ underscore cw.error }}
55- .saturating_add(Weight::from_ref_time({{ underscore cw.slope }} ).saturating_mul({{ cw.name }} as u64 ))
55+ .saturating_add(Weight::from_ref_time({{ underscore cw.slope }} ).saturating_mul({{ cw.name }} .into() ))
5656 {{ /each }}
5757 {{ #if (ne benchmark.base_reads " 0" )}}
5858 .saturating_add(T::DbWeight::get().reads({{ benchmark.base_reads }} ))
5959 {{ /if }}
6060 {{ #each benchmark.component_reads as |cr |}}
61- .saturating_add(T::DbWeight::get().reads(({{ cr.slope }} ).saturating_mul({{ cr.name }} as u64 )))
61+ .saturating_add(T::DbWeight::get().reads(({{ cr.slope }} _u64 ).saturating_mul({{ cr.name }} .into() )))
6262 {{ /each }}
6363 {{ #if (ne benchmark.base_writes " 0" )}}
6464 .saturating_add(T::DbWeight::get().writes({{ benchmark.base_writes }} ))
6565 {{ /if }}
6666 {{ #each benchmark.component_writes as |cw |}}
67- .saturating_add(T::DbWeight::get().writes(({{ cw.slope }} ).saturating_mul({{ cw.name }} as u64 )))
67+ .saturating_add(T::DbWeight::get().writes(({{ cw.slope }} _u64 ).saturating_mul({{ cw.name }} .into() )))
6868 {{ /each }}
6969 }
7070 {{ /each }}
@@ -85,22 +85,22 @@ impl WeightInfo for () {
8585 {{ ~#if (not c.is_used )}} _{{ /if }} {{ c.name }} : u32, {{ /each ~}}
8686 ) -> Weight {
8787 // Minimum execution time: {{ underscore benchmark.min_execution_time }} nanoseconds.
88- Weight::from_ref_time({{ underscore benchmark.base_weight }} as u64 )
88+ Weight::from_ref_time({{ underscore benchmark.base_weight }} )
8989 {{ #each benchmark.component_weight as |cw |}}
9090 // Standard Error: {{ underscore cw.error }}
91- .saturating_add(Weight::from_ref_time({{ underscore cw.slope }} as u64 ).saturating_mul({{ cw.name }} as u64 ))
91+ .saturating_add(Weight::from_ref_time({{ underscore cw.slope }} ).saturating_mul({{ cw.name }} .into() ))
9292 {{ /each }}
9393 {{ #if (ne benchmark.base_reads " 0" )}}
94- .saturating_add(RocksDbWeight::get().reads({{ benchmark.base_reads }} as u64 ))
94+ .saturating_add(RocksDbWeight::get().reads({{ benchmark.base_reads }} ))
9595 {{ /if }}
9696 {{ #each benchmark.component_reads as |cr |}}
97- .saturating_add(RocksDbWeight::get().reads(({{ cr.slope }} as u64 ).saturating_mul({{ cr.name }} as u64 )))
97+ .saturating_add(RocksDbWeight::get().reads(({{ cr.slope }} _u64 ).saturating_mul({{ cr.name }} .into() )))
9898 {{ /each }}
9999 {{ #if (ne benchmark.base_writes " 0" )}}
100- .saturating_add(RocksDbWeight::get().writes({{ benchmark.base_writes }} as u64 ))
100+ .saturating_add(RocksDbWeight::get().writes({{ benchmark.base_writes }} ))
101101 {{ /if }}
102102 {{ #each benchmark.component_writes as |cw |}}
103- .saturating_add(RocksDbWeight::get().writes(({{ cw.slope }} as u64 ).saturating_mul({{ cw.name }} as u64 )))
103+ .saturating_add(RocksDbWeight::get().writes(({{ cw.slope }} _u64 ).saturating_mul({{ cw.name }} .into() )))
104104 {{ /each }}
105105 }
106106 {{ /each }}
0 commit comments