Skip to content

Commit

Permalink
disable bailout in EVM::call
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Feb 4, 2025
1 parent 10da1e7 commit 3e0e4df
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 @@ -211,7 +211,7 @@ evmc::Result EVM::call(const evmc_message& message) noexcept {

const auto value{intx::be::load<intx::uint256>(message.value)};
const auto owned_funds = state_.get_balance(message.sender);
if (!bailout && message.kind != EVMC_DELEGATECALL && owned_funds < value) {
if (message.kind != EVMC_DELEGATECALL && owned_funds < value) {
res.status_code = EVMC_INSUFFICIENT_BALANCE;
return res;
}
Expand Down

0 comments on commit 3e0e4df

Please sign in to comment.