Skip to content

Conversation

d4mr
Copy link
Member

@d4mr d4mr commented Nov 13, 2024

PR-Codex overview

This PR updates the isNonceAlreadyUsedError function in src/utils/error.ts to enhance its error handling by checking for multiple phrases related to nonce errors.

Detailed summary

  • Introduced a new constant errorPhrases containing "nonce too low" and "already known".
  • Replaced the previous check for "nonce too low" with a check that uses some() to see if message includes any of the phrases in errorPhrases.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@d4mr d4mr merged commit 4e9ea68 into main Nov 13, 2024
5 checks passed
@d4mr d4mr deleted the pb/add-nonce-error-phrase branch November 13, 2024 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants