Skip to content

Commit

Permalink
bugfix: remove the gasprice and minertip legacy checks from estimateGas
Browse files Browse the repository at this point in the history
  • Loading branch information
gameofpointers committed Oct 4, 2024
1 parent 3880468 commit 547fd54
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/quaiapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 547fd54

Please sign in to comment.