Skip to content

Commit

Permalink
chore: fix typos (#1868)
Browse files Browse the repository at this point in the history
  • Loading branch information
conr2d authored Nov 21, 2024
1 parent a9e15b2 commit e18d01f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/interpreter/src/gas/calc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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::<INSTANBUL_SLOAD_GAS, SSTORE_RESET>(vals)
istanbul_sstore_cost::<ISTANBUL_SLOAD_GAS, SSTORE_RESET>(vals)
} else {
// Frontier logic
frontier_sstore_cost(vals)
Expand Down
2 changes: 1 addition & 1 deletion crates/interpreter/src/gas/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e18d01f

Please sign in to comment.