diff --git a/crates/interpreter/src/gas/calc.rs b/crates/interpreter/src/gas/calc.rs index b9af574a3b..b5fc98fa45 100644 --- a/crates/interpreter/src/gas/calc.rs +++ b/crates/interpreter/src/gas/calc.rs @@ -180,7 +180,7 @@ pub const fn sload_cost(spec_id: SpecId, is_cold: bool) -> u64 { } } else if spec_id.is_enabled_in(SpecId::ISTANBUL) { // EIP-1884: Repricing for trie-size-dependent opcodes - INSTANBUL_SLOAD_GAS + ISTANBUL_SLOAD_GAS } else if spec_id.is_enabled_in(SpecId::TANGERINE) { // EIP-150: Gas cost changes for IO-heavy operations 200 @@ -202,7 +202,7 @@ pub fn sstore_cost(spec_id: SpecId, vals: &SStoreResult, is_cold: bool) -> u64 { gas_cost } else if spec_id.is_enabled_in(SpecId::ISTANBUL) { // Istanbul logic - istanbul_sstore_cost::(vals) + istanbul_sstore_cost::(vals) } else { // Frontier logic frontier_sstore_cost(vals) diff --git a/crates/interpreter/src/gas/constants.rs b/crates/interpreter/src/gas/constants.rs index a9dcb0a537..85d0f4abbc 100644 --- a/crates/interpreter/src/gas/constants.rs +++ b/crates/interpreter/src/gas/constants.rs @@ -28,7 +28,7 @@ pub const BLOCKHASH: u64 = 20; pub const CODEDEPOSIT: u64 = 200; /// EIP-1884: Repricing for trie-size-dependent opcodes -pub const INSTANBUL_SLOAD_GAS: u64 = 800; +pub const ISTANBUL_SLOAD_GAS: u64 = 800; pub const SSTORE_SET: u64 = 20000; pub const SSTORE_RESET: u64 = 5000; pub const REFUND_SSTORE_CLEARS: i64 = 15000;