-
Notifications
You must be signed in to change notification settings - Fork 364
Conversation
CLA Assistant Lite All Contributors have signed the CLA. |
ESLint Summary View Full Report
Report generated by eslint-plus-action |
What if you disconnect from the wallet itself? Doesn't onboard have a specific disconnect event? |
Pull Request Test Coverage Report for Build 2462374324
💛 - Coveralls |
This reverts commit 7a5fb08.
Sadly it doesn't. I think it's current implementation flows better than before though. |
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.
🚀
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.
Thanks!
For what I see It only works with MM. Is this how is expected to work? I tried WC, Trezor and Ledger and those do not keep the connection, for example going from rinkeby to mainnet since both networks support all the wallets mentioned. |
I'm pretty sure you're correct. WC sessions are chain specific and hardware wallets do not allow for switching networks. |
This might be true in our case, but most other apps allow switching the chain within a single WC session. |
Switching via the wallet is supported and prod/this PR does this: Changing network via wallet (maintains connection): Changing network via Safe (does not reconnect): WC doesn't support the |
What it solves
Resolves #3938
How this PR fixes it
Removal of the last provider cache occurs with clicking disconnect.
It was previously removed when onboard was totally disconnected and the provider store was empty, which occurs when switching chain. We didn't experience this bug before as the removal of the wrong key was attempted.
How to test it
Connect a wallet and: