Skip to content

Commit

Permalink
state: Add EVMMAXState state to ExecutionState
Browse files Browse the repository at this point in the history
  • Loading branch information
rodiazet committed Jan 3, 2024
1 parent fc43859 commit 3f96507
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/evmone/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ add_library(evmone
vm.hpp
)
target_compile_features(evmone PUBLIC cxx_std_20)
target_link_libraries(evmone PUBLIC evmc::evmc intx::intx PRIVATE ethash::keccak)
target_link_libraries(evmone PUBLIC evmc::evmc intx::intx evmmax PRIVATE ethash::keccak)
target_include_directories(evmone PUBLIC
$<BUILD_INTERFACE:${include_dir}>$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
Expand Down
4 changes: 4 additions & 0 deletions lib/evmone/execution_state.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#pragma once

#include <evmc/evmc.hpp>
#include <evmmax/evmmax.hpp>
#include <intx/intx.hpp>
#include <string>
#include <vector>
Expand Down Expand Up @@ -142,6 +143,8 @@ class ExecutionState
size_t output_offset = 0;
size_t output_size = 0;

evmmax::EVMMAXState evmmax_state;

private:
evmc_tx_context m_tx = {};

Expand Down Expand Up @@ -190,6 +193,7 @@ class ExecutionState
output_offset = 0;
output_size = 0;
m_tx = {};
evmmax_state.clear();
}

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

0 comments on commit 3f96507

Please sign in to comment.