Skip to content

Commit

Permalink
base_extrinsic get from RuntimeBlockWeights for WeightToFee
Browse files Browse the repository at this point in the history
  • Loading branch information
ipapandinas committed Dec 4, 2024
1 parent ce4612c commit e215684
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion runtime/shibuya/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,12 @@ impl WeightToFeePolynomial for WeightToFee {
type Balance = Balance;
fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {
let p = WeightFeeFactor::get();
let q = Balance::from(ExtrinsicBaseWeight::get().ref_time());
let q = Balance::from(
RuntimeBlockWeights::get()
.get(DispatchClass::Normal)
.base_extrinsic
.ref_time(),
);
smallvec::smallvec![WeightToFeeCoefficient {
degree: 1,
negative: false,
Expand Down

0 comments on commit e215684

Please sign in to comment.