File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,16 +13,16 @@ impl<T: frame_system::Config> ModuleWeights<T> {
13
13
{{ #each benchmarks as |benchmark |}}
14
14
// Storage access info
15
15
//
16
- {{ #each benchmark.comments as |c |}}
17
- // {{ c }}
16
+ {{ #each benchmark.comments as |comment |}}
17
+ // {{ comment }}
18
18
{{ /each }}
19
19
pub fn {{ benchmark.name ~}} () -> Weight {
20
- ({{ underscore benchmark.weight }} as Weight )
20
+ Weight::from_ref_time ({{ underscore benchmark.weight }} )
21
21
{{ #if (ne benchmark.reads 0 )}}
22
- .saturating_add(T::DbWeight::get().reads({{ benchmark.reads }} as Weight ))
22
+ .saturating_add(T::DbWeight::get().reads({{ benchmark.reads }} ))
23
23
{{ /if }}
24
24
{{ #if (ne benchmark.writes 0 )}}
25
- .saturating_add(T::DbWeight::get().writes({{ benchmark.writes }} as Weight ))
25
+ .saturating_add(T::DbWeight::get().writes({{ benchmark.writes }} ))
26
26
{{ /if }}
27
27
}
28
28
{{ /each }}
You can’t perform that action at this time.
0 commit comments