-
Notifications
You must be signed in to change notification settings - Fork 464
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
fix: switching hardware wallet networks #1085
Conversation
|
||
if (wallet && isHardwareWallet(wallet)) { | ||
onboard?.disconnectWallet({ label: wallet.label }).then(() => { | ||
connectWallet(onboard, { autoSelect: wallet.label }) |
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.
Deploying with Cloudflare Pages
|
ESLint Summary View Full Report
Report generated by eslint-plus-action |
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.
👍
@francovenica please test this with Keystone as well. |
I don't have a keystone (those are illegal in Argentina :D ). @liliya-soroka I think you have one |
Miss understood the moment were it disconnects. You actually have to click "Change to NETWORK" for the disconnect to happen, which is correct. So disregard my last comment |
LGTM |
What it solves
Resolves #1073
How this PR fixes it
If a hardware wallet is connected, it is diconnected and reconnected when switching network as it is not possible to change the network of a hardware wallet.
How to test it
Open the Safe on a network where a Ledger/Trezor is enabled and connect it. Switch to another network that also supports Ledger/Trezor. Observe the address scanner modal open.