Skip to content
This repository was archived by the owner on Oct 20, 2024. It is now read-only.

Commit 815a451

Browse files
authored
Only maxFeePerGas has to be > 0 during estimate gas call (#151)
1 parent 4580464 commit 815a451

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/gas/estimate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ func EstimateGas(
2323
chainID *big.Int,
2424
tracer string,
2525
) (verificationGas uint64, callGas uint64, err error) {
26-
if op.MaxFeePerGas.Cmp(big.NewInt(0)) != 1 || op.MaxPriorityFeePerGas.Cmp(big.NewInt(0)) != 1 {
26+
if op.MaxFeePerGas.Cmp(big.NewInt(0)) != 1 {
2727
return 0, 0, errors.NewRPCError(
2828
errors.INVALID_FIELDS,
29-
"maxFeePerGas and maxPriorityFeePerGas must be more than 0",
29+
"maxFeePerGas must be more than 0",
3030
nil,
3131
)
3232
}

0 commit comments

Comments
 (0)