Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update .maintain/frame-weight-template.hbs
Co-authored-by: Shawn Tabrizi <[email protected]>
  • Loading branch information
hzy1919 and shawntabrizi authored Apr 27, 2022
commit eafa96f20e18918bfba8fb2bc26f91f6cdfb908b
4 changes: 2 additions & 2 deletions .maintain/frame-weight-template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
) -> Weight {
({{underscoreFormat benchmark.base_weight}})
{{#each benchmark.component_weight as |cw|}}
// Standard Error: {{underscoreFormat cw.error}}
.saturating_add(({{underscoreFormat cw.slope}}).saturating_mul({{cw.name}} as Weight))
// Standard Error: {{weightAsNanoseconds cw.error}}
.saturating_add(({{weightAsNanoseconds cw.slope}}).saturating_mul({{cw.name}} as Weight))
{{/each}}
{{#if (ne benchmark.base_reads "0")}}
.saturating_add(T::DbWeight::get().reads({{benchmark.base_reads}} as Weight))
Expand Down