From 7a46e72fb5a62add80c997dff4739d32e254d639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Thu, 12 Sep 2024 16:33:14 +0200 Subject: [PATCH] Fix `ExecutionState::reset()` (#1004) Reset previously omitted fields related to EOF execution: `deploy_container` and `call_stack`. --- lib/evmone/execution_state.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/evmone/execution_state.hpp b/lib/evmone/execution_state.hpp index 183d1e0bb6..52400afeb3 100644 --- a/lib/evmone/execution_state.hpp +++ b/lib/evmone/execution_state.hpp @@ -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; }