Skip to content

Commit

Permalink
Fix ExecutionState::reset() (#1004)
Browse files Browse the repository at this point in the history
Reset previously omitted fields related to EOF execution:
`deploy_container` and `call_stack`.
  • Loading branch information
chfast authored Sep 12, 2024
1 parent 00af48c commit 7a46e72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/evmone/execution_state.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ class ExecutionState
status = EVMC_SUCCESS;
output_offset = 0;
output_size = 0;
deploy_container = {};
m_tx = {};
call_stack = {};
}

[[nodiscard]] bool in_static_mode() const { return (msg->flags & EVMC_STATIC) != 0; }
Expand Down

0 comments on commit 7a46e72

Please sign in to comment.