Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions crates/interpreter/src/gas/calc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,12 @@ const fn frontier_sstore_cost(vals: &SStoreResult) -> u64 {
/// Static gas cost for selfdestruct.
#[inline]
pub const fn static_selfdestruct_cost(spec_id: SpecId) -> u64 {
let is_tangerine = spec_id.is_enabled_in(SpecId::TANGERINE);
let mut gas = 0;

// EIP-150: Gas cost changes for IO-heavy operations
gas += if is_tangerine { 5000 } else { 0 };

gas
if spec_id.is_enabled_in(SpecId::TANGERINE) {
5000
} else {
0
}
}

/// `SELFDESTRUCT` opcode cost calculation.
Expand Down
Loading