Skip to content

Commit

Permalink
internal/ethapi: add basefee to block overrides (ethereum#25219)
Browse files Browse the repository at this point in the history
  • Loading branch information
s1na authored and blakehhuynh committed Oct 7, 2022
1 parent bde7ac7 commit 4c6a9ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,7 @@ type BlockOverrides struct {
GasLimit *hexutil.Uint64
Coinbase *common.Address
Random *common.Hash
BaseFee *hexutil.Big
}

// Apply overrides the given header fields into the given block context.
Expand All @@ -914,6 +915,9 @@ func (diff *BlockOverrides) Apply(blockCtx *vm.BlockContext) {
if diff.Random != nil {
blockCtx.Random = diff.Random
}
if diff.BaseFee != nil {
blockCtx.BaseFee = diff.BaseFee.ToInt()
}
}

func DoCall(ctx context.Context, b Backend, args TransactionArgs, blockNrOrHash rpc.BlockNumberOrHash, overrides *StateOverride, timeout time.Duration, globalGasCap uint64) (*core.ExecutionResult, error) {
Expand Down

0 comments on commit 4c6a9ad

Please sign in to comment.