Skip to content

Commit

Permalink
Fix: Consider eos-evm-version for new account creation gas deduction
Browse files Browse the repository at this point in the history
  • Loading branch information
elmato committed Feb 27, 2024
1 parent c8cdb63 commit 97f76a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion silkworm/core/execution/evm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ evmc::Result EVM::call(const evmc_message& message) noexcept {
tracer.get().on_execution_end(res.raw(),state_);
}
} else {
if(message.depth == 0 && state_.is_dead(message.recipient)) {
if(eos_evm_version_ > 0 && message.depth == 0 && state_.is_dead(message.recipient)) {
if ((res.gas_left -= static_cast<int64_t>(gas_params_.G_txnewaccount)) < 0)
res.status_code = EVMC_OUT_OF_GAS;
} else {
Expand Down

0 comments on commit 97f76a7

Please sign in to comment.