Skip to content

Commit b320e27

Browse files
authored
Handle 'incorrect account sequence' in nonce error check (#910)
Added support for detecting errors with the message 'incorrect account sequence' in the isNonceAlreadyUsedError utility. This improves error handling for cases where the nonce is invalid due to account sequence issues.
1 parent 60d9d97 commit b320e27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/utils/error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const isNonceAlreadyUsedError = (error: unknown) => {
1919

2020
if (message) {
2121
return (
22-
message.includes("nonce too low") || message.includes("already known")
22+
message.includes("nonce too low") || message.includes("already known") || message.includes("incorrect account sequence")
2323
);
2424
}
2525

0 commit comments

Comments
 (0)