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

Commit f801f28

Browse files
authored
fix(pkg): fix a sender error check issue (#602)
1 parent 428a89e commit f801f28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/sender/sender.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ func (s *Sender) send(tx *TxToConfirm) error {
257257
log.Warn("Nonce is incorrect, retry sending the transaction with new nonce", "hash", rawTx.Hash(), "err", err)
258258
continue
259259
}
260-
if err.Error() == "replacement transaction underpriced" {
260+
if strings.Contains(err.Error(), "replacement transaction underpriced") {
261261
s.adjustGas(originalTx)
262262
log.Warn("Replacement transaction underpriced", "hash", rawTx.Hash(), "err", err)
263263
continue

0 commit comments

Comments
 (0)