From 7c4126ffd345b546bb18e0119165b87d084e378f Mon Sep 17 00:00:00 2001 From: Greg Zaitsev Date: Wed, 16 Oct 2024 16:58:35 -0400 Subject: [PATCH] Fix decimals in gas price rpc --- runtime/src/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 2437a1414..c87a5bb74 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -1554,9 +1554,7 @@ impl_runtime_apis! { fn gas_price() -> U256 { let (gas_price, _) = ::FeeCalculator::min_gas_price(); - - // Recalculate decimals - gas_price * U256::from(EVM_DECIMALS_FACTOR) + gas_price } fn account_code_at(address: H160) -> Vec {