From 1fd79740e97aadf1220336984ac7b2acdf619abe Mon Sep 17 00:00:00 2001
From: Ino Murko <ino.murko.github@protonmail.com>
Date: Thu, 28 Nov 2024 14:15:28 +0100
Subject: [PATCH] Update nonce_mismatch log parsing

---
 app/errors/nonce_mismatch.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/errors/nonce_mismatch.go b/app/errors/nonce_mismatch.go
index 8209aac8b7..3af0494b18 100644
--- a/app/errors/nonce_mismatch.go
+++ b/app/errors/nonce_mismatch.go
@@ -32,7 +32,7 @@ func ParseNonceMismatch(err error) (uint64, error) {
 // ParseExpectedSequence extracts the expected sequence number from the
 // ErrWrongSequence error.
 func ParseExpectedSequence(str string) (uint64, error) {
-	if !strings.HasPrefix(str, "account sequence mismatch") {
+	if !strings.Contains(str, "incorrect account sequence") {
 		return 0, fmt.Errorf("unexpected wrong sequence error: %s", str)
 	}