mirror of https://github.com/status-im/evmc.git
Support CHAINID in go bindings
This commit is contained in:
parent
cd93feaf9f
commit
5377cbeec7
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue