Commit 75ec2869 authored by Mark Tyneway's avatar Mark Tyneway

l2geth: fee too high error message

Update the error message returned when the fee is too
high to return the correct multiplication. It should be
the expected fee * the fee threshold up.
parent c7bc85de
---
'@eth-optimism/l2geth': patch
---
Return correct value in L2 Geth fee too high error message
...@@ -880,7 +880,7 @@ func (s *SyncService) verifyFee(tx *types.Transaction) error { ...@@ -880,7 +880,7 @@ func (s *SyncService) verifyFee(tx *types.Transaction) error {
} }
if errors.Is(err, fees.ErrFeeTooHigh) { if errors.Is(err, fees.ErrFeeTooHigh) {
return fmt.Errorf("%w: %d, use less than %d * %f", fees.ErrFeeTooHigh, userFee, return fmt.Errorf("%w: %d, use less than %d * %f", fees.ErrFeeTooHigh, userFee,
expectedFee, s.feeThresholdDown) expectedFee, s.feeThresholdUp)
} }
return err return err
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment