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

Commit

Permalink
Only maxFeePerGas has to be > 0 during estimate gas call (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
hazim-j authored Apr 23, 2023
1 parent 4580464 commit 815a451
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/gas/estimate.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ func EstimateGas(
chainID *big.Int,
tracer string,
) (verificationGas uint64, callGas uint64, err error) {
if op.MaxFeePerGas.Cmp(big.NewInt(0)) != 1 || op.MaxPriorityFeePerGas.Cmp(big.NewInt(0)) != 1 {
if op.MaxFeePerGas.Cmp(big.NewInt(0)) != 1 {
return 0, 0, errors.NewRPCError(
errors.INVALID_FIELDS,
"maxFeePerGas and maxPriorityFeePerGas must be more than 0",
"maxFeePerGas must be more than 0",
nil,
)
}
Expand Down

0 comments on commit 815a451

Please sign in to comment.