Compare commits

..

1 Commits

Author SHA1 Message Date
colin
934ea33443 fix(sender): nonce too low error catch (#1337)
Co-authored-by: colinlyguo <colinlyguo@users.noreply.github.com>
2024-05-17 17:57:39 +08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ import (
"runtime/debug"
)
var tag = "v4.4.6"
var tag = "v4.4.7"
var commit = func() string {
if info, ok := debug.ReadBuildInfo(); ok {

View File

@@ -277,7 +277,7 @@ func (s *Sender) createAndSendTx(feeData *FeeData, target *common.Address, data
log.Error("failed to send tx", "tx hash", signedTx.Hash().String(), "from", s.auth.From.String(), "nonce", signedTx.Nonce(), "err", err)
// Check if contain nonce, and reset nonce
// only reset nonce when it is not from resubmit
if strings.Contains(err.Error(), "nonce") && overrideNonce == nil {
if strings.Contains(err.Error(), "nonce too low") && overrideNonce == nil {
s.resetNonce(context.Background())
}
return nil, err