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

Commit

Permalink
fix(pkg): fix a sender error check issue (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp authored Mar 5, 2024
1 parent 428a89e commit f801f28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/sender/sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func (s *Sender) send(tx *TxToConfirm) error {
log.Warn("Nonce is incorrect, retry sending the transaction with new nonce", "hash", rawTx.Hash(), "err", err)
continue
}
if err.Error() == "replacement transaction underpriced" {
if strings.Contains(err.Error(), "replacement transaction underpriced") {
s.adjustGas(originalTx)
log.Warn("Replacement transaction underpriced", "hash", rawTx.Hash(), "err", err)
continue
Expand Down

0 comments on commit f801f28

Please sign in to comment.