Skip to content

Commit

Permalink
Update nonce_mismatch log parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
InoMurko authored Nov 28, 2024
1 parent 2ca0feb commit 1fd7974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/errors/nonce_mismatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 1fd7974

Please sign in to comment.