Skip to content

Commit

Permalink
Merge pull request #177 from eosnetworkfoundation/elmato/add-support-…
Browse files Browse the repository at this point in the history
…for-version-3

Add support for eos-evm-version 3
  • Loading branch information
elmato authored Jul 11, 2024
2 parents c4da9c7 + b3a26da commit c21967a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eosevm/version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <eosevm/assert.hpp>
namespace eosevm {

static constexpr uint64_t max_eos_evm_version = 2;
static constexpr uint64_t max_eos_evm_version = 3;

using NonceType=silkworm::BlockHeader::NonceType;

Expand All @@ -25,6 +25,7 @@ inline evmc_revision version_to_evmc_revision(uint64_t version) {
case 0: return EVMC_ISTANBUL;
case 1: return EVMC_SHANGHAI;
case 2: return EVMC_SHANGHAI;
case 3: return EVMC_SHANGHAI;
}
auto msg = "Unknown EOSEVM version: " + std::to_string(version);
EOSEVM_ABORT(msg.c_str());
Expand Down

0 comments on commit c21967a

Please sign in to comment.