Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ability to throw connection errors #142

Merged
merged 3 commits into from
Mar 20, 2024

Conversation

PhearZero
Copy link
Contributor

Description

  • adds optional throws parameter to connect in order to react to connection errors

Checklist

Please, make sure to comply with the checklist below before expecting review

  • Code compiles correctly
  • Created tests which fail without the change (if possible)
  • All tests passing
  • Extended the README / documentation, if necessary

Copy link
Collaborator

@drichar drichar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good! I was just talking with someone in our Discord about handling errors thrown by signTransactions in the consuming app... this would allow for doing the same with connection errors (while being non-breaking).

Just two minor change requests (linting/formatting), then this is good to go!

Thank you for the PR! And sorry about the delay reviewing it.

src/hooks/useWallet.ts Outdated Show resolved Hide resolved
src/hooks/useWallet.ts Outdated Show resolved Hide resolved
@PhearZero PhearZero force-pushed the feat/throws-error-flag branch from 22f400b to 3cb35ca Compare March 20, 2024 13:09
@drichar drichar merged commit 53689eb into TxnLab:main Mar 20, 2024
1 check passed
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