diff --git a/bindings/go/evmc/evmc.go b/bindings/go/evmc/evmc.go index f0b1a05..fdb91bc 100644 --- a/bindings/go/evmc/evmc.go +++ b/bindings/go/evmc/evmc.go @@ -141,6 +141,7 @@ const ( SpuriousDragon Revision = C.EVMC_SPURIOUS_DRAGON Byzantium Revision = C.EVMC_BYZANTIUM Constantinople Revision = C.EVMC_CONSTANTINOPLE + Constantinople2 Revision = C.EVMC_CONSTANTINOPLE2 Istanbul Revision = C.EVMC_ISTANBUL ) diff --git a/include/evmc/evmc.h b/include/evmc/evmc.h index ee02a72..fbce040 100644 --- a/include/evmc/evmc.h +++ b/include/evmc/evmc.h @@ -717,7 +717,14 @@ enum evmc_revision EVMC_SPURIOUS_DRAGON = 3, EVMC_BYZANTIUM = 4, EVMC_CONSTANTINOPLE = 5, - EVMC_ISTANBUL = 6, + + /** + * Reserved for the post-Constantinople upgrade. The name is likely to + * be changed, but the assigned number should stay. + */ + EVMC_CONSTANTINOPLE2 = 6, + + EVMC_ISTANBUL = 7, /** The maximum EVM revision supported. */ EVMC_MAX_REVISION = EVMC_ISTANBUL, diff --git a/lib/instructions/instruction_metrics.c b/lib/instructions/instruction_metrics.c index 41c9a3a..47ae85c 100644 --- a/lib/instructions/instruction_metrics.c +++ b/lib/instructions/instruction_metrics.c @@ -1322,7 +1322,7 @@ const struct evmc_instruction_metrics* evmc_get_instruction_metrics_table( switch (revision) { case EVMC_ISTANBUL: - /* Currently the same as Costantinople */ + case EVMC_CONSTANTINOPLE2: case EVMC_CONSTANTINOPLE: return constantinople_metrics; case EVMC_BYZANTIUM: diff --git a/lib/instructions/instruction_names.c b/lib/instructions/instruction_names.c index 8ebe49c..c3347e4 100644 --- a/lib/instructions/instruction_names.c +++ b/lib/instructions/instruction_names.c @@ -1046,7 +1046,7 @@ const char* const* evmc_get_instruction_names_table(enum evmc_revision revision) switch (revision) { case EVMC_ISTANBUL: - /* Currently the same as Costantinople */ + case EVMC_CONSTANTINOPLE2: case EVMC_CONSTANTINOPLE: return constantinople_names; case EVMC_BYZANTIUM: