-
Notifications
You must be signed in to change notification settings - Fork 44
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
Show wallet creation error when key length mismatched #436
Show wallet creation error when key length mismatched #436
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change the messaging?
- Import/Add wallet from JWK: Error message 👍
- Creating/Importing wallet from a seedphrase:
- automatically retry
- maybe show a message that it's taking longer than usual
Whenever we create the key (from a seedphrase), it should always be valid.
Whenever a key comes from the user, then we should show an error for bad keys.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK 👍
🎉 This PR is included in version 1.17.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary
This PR shows the wallet generation error modal when actual key length doesn't equals to expected key length with retry action key to retry wallet generation. Also, it fixes the password matching logic.
How To Test
ArConnect/src/wallets/generator.ts
Line 27 in dc1d616
modulusLength: [4096, 2048][Math.floor(Math.random() * 2)]
to test this PR so that the error modal shows.