From 4b6e811196b1620240096e0957edfa3b9051cb85 Mon Sep 17 00:00:00 2001 From: yperbasis Date: Mon, 27 May 2024 10:55:01 +0200 Subject: [PATCH] Default feeCap to BaseFee --- turbo/jsonrpc/eth_call.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/turbo/jsonrpc/eth_call.go b/turbo/jsonrpc/eth_call.go index d88be770a0b..a76393bb697 100644 --- a/turbo/jsonrpc/eth_call.go +++ b/turbo/jsonrpc/eth_call.go @@ -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 }