From 5377cbeec7e49e1140d5b7f21199a29831f0956c Mon Sep 17 00:00:00 2001 From: Andrei Maiboroda Date: Wed, 31 Jul 2019 14:55:17 +0200 Subject: [PATCH] Support CHAINID in go bindings --- bindings/go/evmc/host.go | 2 ++ 1 file changed, 2 insertions(+) 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), } }