Add Standard Error to Weight Template (#7652)

* Add standard error to weight template

* fix test compile
This commit is contained in:
Shawn Tabrizi
2020-12-04 13:09:19 -08:00
committed by GitHub
parent 80af50b830
commit 4b8cee9e55
3 changed files with 59 additions and 24 deletions
@@ -27,6 +27,7 @@ impl<T: frame_system::Config> {{pallet}}::WeightInfo for WeightInfo<T> {
) -> Weight {
({{underscore benchmark.base_weight}} as Weight)
{{~#each benchmark.component_weight as |cw|}}
// Standard Error: {{underscore cw.error}}
.saturating_add(({{underscore cw.slope}} as Weight).saturating_mul({{cw.name}} as Weight))
{{~/each}}
{{~#if (ne benchmark.base_reads "0")}}