Support CHAINID in go bindings

This commit is contained in:
Andrei Maiboroda 2019-07-31 14:55:17 +02:00 committed by Paweł Bylica
parent cd93feaf9f
commit 5377cbeec7
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
1 changed files with 2 additions and 0 deletions

View File

@ -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),
}
}