Skip to content

Commit 8b09e50

Browse files
authored
evmc: Bump ABI version to 13 (#1567)
The ABI changed incompatibly since EVMC 12 (evmone 0.21.0) while the version number stayed at 12, so a host built against ABI-12 headers would load the new VM cleanly and then read structs at wrong offsets: - evmc_tx_context layout changed: the TXCREATE initcodes fields were removed (#1514) and block_slot_number was added for EIP-7843 (#1517). - evmc_result lost the reserved optional-data storage (#1529). - EVMC_EOFCREATE was removed from evmc_call_kind, freeing value 5 for future reuse (#1515). - The EVMC_AMSTERDAM revision was added (#1508). This is the first ABI bump since EVMC was merged into evmone, so the version no longer tracks the standalone EVMC project's major version; the doc comment is updated accordingly.
1 parent 3fb8942 commit 8b09e50

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

evmc/include/evmc/evmc.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@ enum
3939
/**
4040
* The EVMC ABI version number of the interface declared in this file.
4141
*
42-
* The EVMC ABI version always equals the major version number of the EVMC project.
42+
* The ABI version is incremented on every incompatible change of the EVMC API or ABI
43+
* (up to EVMC 12 it equaled the major version number of the standalone EVMC project).
4344
* The Host SHOULD check if the ABI versions match when dynamically loading VMs.
4445
*
4546
* @see @ref versioning
4647
*/
47-
EVMC_ABI_VERSION = 12
48+
EVMC_ABI_VERSION = 13
4849
};
4950

5051

0 commit comments

Comments
 (0)