Skip to content

Commit

Permalink
Default feeCap to BaseFee
Browse files Browse the repository at this point in the history
  • Loading branch information
yperbasis committed May 27, 2024
1 parent baa1f5f commit 4b6e811
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions turbo/jsonrpc/eth_call.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ func (api *APIImpl) EstimateGas(ctx context.Context, argsOrNil *ethapi2.CallArgs
feeCap = args.GasPrice.ToInt()
} else if args.MaxFeePerGas != nil {
feeCap = args.MaxFeePerGas.ToInt()
} else if header.BaseFee != nil {
feeCap = new(big.Int).Set(header.BaseFee)
} else {
feeCap = libcommon.Big0
}
Expand Down

0 comments on commit 4b6e811

Please sign in to comment.