From 547fd5412486d4098eee80ab8958b4f74691c41d Mon Sep 17 00:00:00 2001 From: gop Date: Fri, 4 Oct 2024 15:46:21 -0500 Subject: [PATCH] bugfix: remove the gasprice and minertip legacy checks from estimateGas --- internal/quaiapi/api.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/quaiapi/api.go b/internal/quaiapi/api.go index e4fc4a4a7..182b2cf95 100644 --- a/internal/quaiapi/api.go +++ b/internal/quaiapi/api.go @@ -725,9 +725,7 @@ func DoEstimateGas(ctx context.Context, b Backend, args TransactionArgs, blockNr } // Normalize the max fee per gas the call is willing to spend. var feeCap *big.Int - if args.GasPrice != nil && args.MinerTip != nil { - return 0, errors.New("both gasPrice and (maxFeePerGas or maxPriorityFeePerGas) specified") - } else if args.GasPrice != nil { + if args.GasPrice != nil { feeCap = args.GasPrice.ToInt() } else if args.MinerTip != nil { feeCap = args.MinerTip.ToInt()