Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix evmone version #296

Draft
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/setup-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ cd ../..

# NOTE: evmc v10.0.0 requires evmone v0.9.0
# evmc v10.1.1 requires evmone v0.10.0 (which requires c++20)
EVMC_VER=10.0.0
EVMC_VER=11.0.1
wget https://github.com/ethereum/evmc/archive/refs/tags/v${EVMC_VER}.zip
rm -rf evmc-${EVMC_VER}
unzip v${EVMC_VER}.zip
Expand All @@ -119,7 +119,7 @@ make install
cd ../..

# NOTE: updating evmone to v0.10.0 requires c++20
EVMONE_VER=0.9.1
EVMONE_VER=0.11.0
wget https://github.com/ethereum/evmone/archive/refs/tags/v${EVMONE_VER}.zip
rm -rf evmone-${EVMONE_VER}
unzip v${EVMONE_VER}.zip
Expand Down
11 changes: 11 additions & 0 deletions src/parsec/agent/runners/evm/host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@ namespace cbdc::parsec::agent::runner {
m_receipt.m_ticket_number = m_ticket_number;
}

// implementation for the get_transient_storage method
evmc::bytes32 evm_host::get_transient_storage([[maybe_unused]] const evmc::address& addr,
[[maybe_unused]] const evmc::bytes32& key) const noexcept {
return evmc::bytes32{};
}

// implementation for the set_trainsient_storage method
void evm_host::set_transient_storage([[maybe_unused]] const evmc::address& addr, [[maybe_unused]] const evmc::bytes32& key, [[maybe_unused]] const evmc::bytes32& value) noexcept {

}

auto evm_host::get_account(const evmc::address& addr, bool write) const
-> std::optional<evm_account> {
m_log->trace(this,
Expand Down
8 changes: 8 additions & 0 deletions src/parsec/agent/runners/evm/host.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ namespace cbdc::parsec::agent::runner {
const evmc::bytes32& key) noexcept
-> evmc_access_status override final;

// method signature for get_transient_storage
[[nodiscard]] auto get_transient_storage(const evmc::address& address,
const evmc::bytes32& key) const noexcept -> evmc::bytes32 override final;

// method signature for the set_transient_storage
void set_transient_storage(const evmc::address& address, const evmc::bytes32& key,
const evmc::bytes32& value) noexcept override final;

using indexed_logs_type
= std::unordered_map<evmc::address, std::vector<evm_log>>;

Expand Down
Loading