Support CHAINID in go bindings
MODIFY
bindings/go/evmc/host.go
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),
}
}

Support CHAINID in go bindings