Skip to content

Commit

Permalink
fix(EOF): Remove redundunt ext call gas cost (#1513)
Browse files Browse the repository at this point in the history
* feat(revme): add prague spec

* fix(EOF): jumpf gas was changes

* fix(EOF): extstaticcall make static

* fix(EOF): add DATACOPY copy gas

* fix(EOF): Remove redundunt ext call gas cost
  • Loading branch information
rakita committed Jun 11, 2024
1 parent 0768ec6 commit 8742fc7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions crates/interpreter/src/instructions/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,6 @@ pub fn extcall_gas_calc<H: Host + ?Sized>(
return None;
};

if load_result.is_cold {
gas!(interpreter, gas::COLD_ACCOUNT_ACCESS_COST, None);
}

// TODO(EOF) is_empty should only be checked on delegatecall
let call_cost = gas::call_cost(
BerlinSpec::SPEC_ID,
Expand All @@ -187,8 +183,6 @@ pub fn extcall_gas_calc<H: Host + ?Sized>(
return None;
}

// TODO check remaining gas more then N

gas!(interpreter, gas_limit, None);
Some(gas_limit)
}
Expand Down

0 comments on commit 8742fc7

Please sign in to comment.