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

Add wallet selector if signer not found #667

Merged
merged 3 commits into from
May 24, 2024
Merged

Add wallet selector if signer not found #667

merged 3 commits into from
May 24, 2024

Conversation

teodorus-nathaniel
Copy link
Contributor

@teodorus-nathaniel teodorus-nathaniel commented May 23, 2024

Issue

If you login in another device with grill key / share session, the app won't know which wallet has your connected wallet address
Right now, it just check the first wallet, and if its not found, it just errors out.

Fix

If signer is not found, it will ask user to select which address to connect so the app will know which wallet to use, and user will have clearer info on why the error happens if the account is not there

Image 1: it will select the currently saved wallet in local storage, if there is any. If the selected wallet doesn't contain the connected address, it will show the notice and disabled button
image
Image 2: when user clicks the other, wallet, which contains the address, notice will disappear and user can close or click the button to continue signing the tx
image

@olehmell olehmell merged commit bcd08c6 into main May 24, 2024
2 checks 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