Skip to content

Commit

Permalink
Add EVMC_LATEST_REVISON as an alias for latest EVM revision
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Jun 16, 2018
1 parent 5a60153 commit e9a7023
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion include/evmc/evmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,9 @@ enum evmc_revision
EVMC_TANGERINE_WHISTLE = 2,
EVMC_SPURIOUS_DRAGON = 3,
EVMC_BYZANTIUM = 4,
EVMC_CONSTANTINOPLE = 5
EVMC_CONSTANTINOPLE = 5,

EVMC_LATEST_REVISON = EVMC_CONSTANTINOPLE
};


Expand Down
2 changes: 1 addition & 1 deletion test/unittests/test_instructions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ TEST(instructions, byzantium_hard_fork)

TEST(instructions, name_gas_cost_equivalence)
{
for (auto rev = EVMC_FRONTIER; rev <= EVMC_CONSTANTINOPLE;
for (auto rev = EVMC_FRONTIER; rev <= EVMC_LATEST_REVISON;
rev = static_cast<evmc_revision>(rev + 1))
{
const auto names = evmc_get_instruction_names_table(rev);
Expand Down

0 comments on commit e9a7023

Please sign in to comment.