diff --git a/bindings/go/evmc/host.go b/bindings/go/evmc/host.go index c7b27ca..a9b4696 100644 --- a/bindings/go/evmc/host.go +++ b/bindings/go/evmc/host.go @@ -77,6 +77,7 @@ type TxContext struct { Timestamp int64 GasLimit int64 Difficulty common.Hash + ChainID common.Hash } type HostContext interface { @@ -181,6 +182,7 @@ func getTxContext(pCtx unsafe.Pointer) C.struct_evmc_tx_context { C.int64_t(txContext.Timestamp), C.int64_t(txContext.GasLimit), evmcBytes32(txContext.Difficulty), + evmcBytes32(txContext.ChainID), } }