Skip to content

Commit

Permalink
Fix decimals in gas price rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
gztensor committed Oct 16, 2024
1 parent 3c17e7c commit 7c4126f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1554,9 +1554,7 @@ impl_runtime_apis! {

fn gas_price() -> U256 {
let (gas_price, _) = <Runtime as pallet_evm::Config>::FeeCalculator::min_gas_price();

// Recalculate decimals
gas_price * U256::from(EVM_DECIMALS_FACTOR)
gas_price
}

fn account_code_at(address: H160) -> Vec<u8> {
Expand Down

0 comments on commit 7c4126f

Please sign in to comment.