From e2156844daf5a10a2410bc19da65a30dfb18ac90 Mon Sep 17 00:00:00 2001 From: Igor Papandinas <26460174+ipapandinas@users.noreply.github.com> Date: Wed, 4 Dec 2024 19:31:24 +0100 Subject: [PATCH] base_extrinsic get from RuntimeBlockWeights for WeightToFee --- runtime/shibuya/src/lib.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/runtime/shibuya/src/lib.rs b/runtime/shibuya/src/lib.rs index 22aa68f38..4db3d3b02 100644 --- a/runtime/shibuya/src/lib.rs +++ b/runtime/shibuya/src/lib.rs @@ -807,7 +807,12 @@ impl WeightToFeePolynomial for WeightToFee { type Balance = Balance; fn polynomial() -> WeightToFeeCoefficients { 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,