Skip to content

Commit 7c4126f

Browse files
committed
Fix decimals in gas price rpc
1 parent 3c17e7c commit 7c4126f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

runtime/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,9 +1554,7 @@ impl_runtime_apis! {
15541554

15551555
fn gas_price() -> U256 {
15561556
let (gas_price, _) = <Runtime as pallet_evm::Config>::FeeCalculator::min_gas_price();
1557-
1558-
// Recalculate decimals
1559-
gas_price * U256::from(EVM_DECIMALS_FACTOR)
1557+
gas_price
15601558
}
15611559

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

0 commit comments

Comments
 (0)