mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-30 15:39:49 +00:00
Add Standard Error to Weight Template (#7652)
* Add standard error to weight template * fix test compile
This commit is contained in:
1 parent
80af50b830
commit
4b8cee9e55
3 files changed
+59
-24
No files matched your search
@@ -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")}}
|
||||
|
||||
Reference in new issue
Block a user