We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a52827 commit 3a6135aCopy full SHA for 3a6135a
frame/support/src/weights.rs
@@ -710,6 +710,10 @@ where
710
degree: 1,
711
})
712
}
713
+
714
+ fn calc(weight: &Weight) -> Self::Balance {
715
+ Self::Balance::saturated_from(*weight)
716
+ }
717
718
719
/// Implementor of [`WeightToFeePolynomial`] that uses a constant multiplier.
@@ -738,6 +742,10 @@ where
738
742
739
743
740
744
745
746
747
+ Self::Balance::saturated_from(*weight).saturating_mul(M::get())
748
741
749
750
751
/// A struct holding value for each `DispatchClass`.
0 commit comments