Skip to content

Commit

Permalink
Fix tx fee
Browse files Browse the repository at this point in the history
  • Loading branch information
zjg555543 committed Jul 8, 2024
1 parent 2a60995 commit 6ea20e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ func checkTxFee(gasPrice *big.Int, gas uint64, cap float64) error {
feeFloat, _ := feeEth.Float64()
if feeFloat > cap {
feeFloatTruncated := strconv.FormatFloat(feeFloat, 'f', -1, 64)
return fmt.Errorf("tx fee (%s ether) exceeds the configured cap (%.2f ether)", feeFloatTruncated, cap)
return fmt.Errorf("tx fee (%s okb) exceeds the configured cap (%.2f okb)", feeFloatTruncated, cap)
}
return nil
}

0 comments on commit 6ea20e7

Please sign in to comment.