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

Add Istanbul to evmc_revision #174

Merged
merged 2 commits into from Jan 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions bindings/go/evmc/evmc.go
Expand Up @@ -141,6 +141,7 @@ const (
SpuriousDragon Revision = C.EVMC_SPURIOUS_DRAGON
Byzantium Revision = C.EVMC_BYZANTIUM
Constantinople Revision = C.EVMC_CONSTANTINOPLE
Istanbul Revision = C.EVMC_ISTANBUL
)

type Instance struct {
Expand Down
3 changes: 2 additions & 1 deletion include/evmc/evmc.h
Expand Up @@ -706,8 +706,9 @@ enum evmc_revision
EVMC_SPURIOUS_DRAGON = 3,
EVMC_BYZANTIUM = 4,
EVMC_CONSTANTINOPLE = 5,
EVMC_ISTANBUL = 6,

EVMC_LATEST_REVISION = EVMC_CONSTANTINOPLE
EVMC_LATEST_REVISION = EVMC_ISTANBUL /**< This is the maximum revision number supported. */
};


Expand Down
2 changes: 2 additions & 0 deletions lib/instructions/instruction_metrics.c
Expand Up @@ -1321,6 +1321,8 @@ const struct evmc_instruction_metrics* evmc_get_instruction_metrics_table(
{
switch (revision)
{
case EVMC_ISTANBUL:
/* Currently the same as Costantinople */
case EVMC_CONSTANTINOPLE:
return constantinople_metrics;
case EVMC_BYZANTIUM:
Expand Down
2 changes: 2 additions & 0 deletions lib/instructions/instruction_names.c
Expand Up @@ -1045,6 +1045,8 @@ const char* const* evmc_get_instruction_names_table(enum evmc_revision revision)
{
switch (revision)
{
case EVMC_ISTANBUL:
/* Currently the same as Costantinople */
case EVMC_CONSTANTINOPLE:
return constantinople_names;
case EVMC_BYZANTIUM:
Expand Down