We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d24789 commit b0c0422Copy full SHA for b0c0422
crates/interpreter/src/gas/calc.rs
@@ -266,13 +266,12 @@ const fn frontier_sstore_cost(vals: &SStoreResult) -> u64 {
266
/// Static gas cost for selfdestruct.
267
#[inline]
268
pub const fn static_selfdestruct_cost(spec_id: SpecId) -> u64 {
269
- let is_tangerine = spec_id.is_enabled_in(SpecId::TANGERINE);
270
- let mut gas = 0;
271
-
272
// EIP-150: Gas cost changes for IO-heavy operations
273
- gas += if is_tangerine { 5000 } else { 0 };
274
275
- gas
+ if spec_id.is_enabled_in(SpecId::TANGERINE) {
+ 5000
+ } else {
+ 0
+ }
276
}
277
278
/// `SELFDESTRUCT` opcode cost calculation.
0 commit comments