@@ -54,11 +54,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
54
54
// Measured: `{{ benchmark.base_recorded_proof_size }} {{ #each benchmark.component_recorded_proof_size as |cp |}} + {{ cp.name }} * ({{ cp.slope }} ±{{ underscore cp.error }} ){{ /each }} `
55
55
// Estimated: `{{ benchmark.base_calculated_proof_size }} {{ #each benchmark.component_calculated_proof_size as |cp |}} + {{ cp.name }} * ({{ cp.slope }} ±{{ underscore cp.error }} ){{ /each }} `
56
56
// Minimum execution time: {{ underscore benchmark.min_execution_time }} nanoseconds.
57
- Weight::from_ref_time ({{ underscore benchmark.base_weight }} )
58
- .saturating_add(Weight::from_proof_size ({{ benchmark.base_calculated_proof_size }} ))
57
+ Weight::from_parts ({{ underscore benchmark.base_weight }} , 0 )
58
+ .saturating_add(Weight::from_parts ({{ benchmark.base_calculated_proof_size }} , 0 ))
59
59
{{ #each benchmark.component_weight as |cw |}}
60
60
// Standard Error: {{ underscore cw.error }}
61
- .saturating_add(Weight::from_ref_time ({{ underscore cw.slope }} ).saturating_mul({{ cw.name }} .into()))
61
+ .saturating_add(Weight::from_parts ({{ underscore cw.slope }} , 0 ).saturating_mul({{ cw.name }} .into()))
62
62
{{ /each }}
63
63
{{ #if (ne benchmark.base_reads " 0" )}}
64
64
.saturating_add(T::DbWeight::get().reads({{ benchmark.base_reads }} _u64))
@@ -73,7 +73,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
73
73
.saturating_add(T::DbWeight::get().writes(({{ cw.slope }} _u64).saturating_mul({{ cw.name }} .into())))
74
74
{{ /each }}
75
75
{{ #each benchmark.component_calculated_proof_size as |cp |}}
76
- .saturating_add(Weight::from_proof_size ({{ cp.slope }} ).saturating_mul({{ cp.name }} .into()))
76
+ .saturating_add(Weight::from_parts ({{ cp.slope }} , 0 ).saturating_mul({{ cp.name }} .into()))
77
77
{{ /each }}
78
78
}
79
79
{{ /each }}
@@ -97,11 +97,11 @@ impl WeightInfo for () {
97
97
// Measured: `{{ benchmark.base_recorded_proof_size }} {{ #each benchmark.component_recorded_proof_size as |cp |}} + {{ cp.name }} * ({{ cp.slope }} ±{{ underscore cp.error }} ){{ /each }} `
98
98
// Estimated: `{{ benchmark.base_calculated_proof_size }} {{ #each benchmark.component_calculated_proof_size as |cp |}} + {{ cp.name }} * ({{ cp.slope }} ±{{ underscore cp.error }} ){{ /each }} `
99
99
// Minimum execution time: {{ underscore benchmark.min_execution_time }} nanoseconds.
100
- Weight::from_ref_time ({{ underscore benchmark.base_weight }} )
101
- .saturating_add(Weight::from_proof_size ({{ benchmark.base_calculated_proof_size }} ))
100
+ Weight::from_parts ({{ underscore benchmark.base_weight }} , 0 )
101
+ .saturating_add(Weight::from_parts ({{ benchmark.base_calculated_proof_size }} , 0 ))
102
102
{{ #each benchmark.component_weight as |cw |}}
103
103
// Standard Error: {{ underscore cw.error }}
104
- .saturating_add(Weight::from_ref_time ({{ underscore cw.slope }} ).saturating_mul({{ cw.name }} .into()))
104
+ .saturating_add(Weight::from_parts ({{ underscore cw.slope }} , 0 ).saturating_mul({{ cw.name }} .into()))
105
105
{{ /each }}
106
106
{{ #if (ne benchmark.base_reads " 0" )}}
107
107
.saturating_add(RocksDbWeight::get().reads({{ benchmark.base_reads }} _u64))
@@ -116,7 +116,7 @@ impl WeightInfo for () {
116
116
.saturating_add(RocksDbWeight::get().writes(({{ cw.slope }} _u64).saturating_mul({{ cw.name }} .into())))
117
117
{{ /each }}
118
118
{{ #each benchmark.component_calculated_proof_size as |cp |}}
119
- .saturating_add(Weight::from_proof_size ({{ cp.slope }} ).saturating_mul({{ cp.name }} .into()))
119
+ .saturating_add(Weight::from_parts ({{ cp.slope }} , 0 ).saturating_mul({{ cp.name }} .into()))
120
120
{{ /each }}
121
121
}
122
122
{{ /each }}
0 commit comments