Skip to content

Commit

Permalink
Fix go bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
yperbasis authored and chfast committed May 28, 2021
1 parent 5f262e4 commit c08bdc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bindings/go/evmc/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ type TxContext struct {
GasLimit int64
Difficulty Hash
ChainID Hash
BaseFee Hash // EIP-1559, EIP-3198
}

type HostContext interface {
Expand Down Expand Up @@ -174,6 +175,7 @@ func getTxContext(pCtx unsafe.Pointer) C.struct_evmc_tx_context {
C.int64_t(txContext.GasLimit),
evmcBytes32(txContext.Difficulty),
evmcBytes32(txContext.ChainID),
evmcBytes32(txContext.BaseFee),
}
}

Expand Down

0 comments on commit c08bdc2

Please sign in to comment.