Switching wallet whilst connected to a dApp no longer works #78
-
SummaryWhen connected to a dApp with Phantom (23.11.0) (Solana) via Solana-wallet-adapter (latest version) nothing happens when I switch wallets. When I check Further to this it appears no event is fired on switching wallets - This is a critical bug for us as our dApp uses multi-sig transactions and there is no longer any way for the user to switch wallets to sign from multiple. This bug can be seen across the Solana ecosystem with every app that uses the wallet adapter - eg in Jup.ag you can no longer switch wallets without disconnecting and reconnecting, or refreshing the page Examplejup.ag Steps to Reproduceconnect to site with phantom wallet a, switch wallet in phantom extension to wallet b - nothing happens. in browser console check the output of Phantom Version23.11.0 Is there an existing discussion for this?
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Hey @joefitter, Thank you for writing in! I'm not able to reproduce this on 23.11.0. I'm on Chrome on Mac OS. On jup.ag when I switch to another account in my wallet, I'm either disconnected or switch, if the wallet is previously connected. Have you tried normal troubleshooting things, like restarting the browser, flushing cache, etc? Do you have anyone else that can reproduce the same behavior? |
Beta Was this translation helpful? Give feedback.
-
Hey @joefitter, this is a bug. It was also identified here: https://github.com/orgs/phantom/discussions/104 We have a fix coming out in the next few weeks. |
Beta Was this translation helpful? Give feedback.
-
Hi @adamdelphantom - thanks for getting back to me. Just to add some more information - if I connect with Phantom in multi-chain mode it works fine, but only with wallets created using Phantom. If I use a wallet imported via private key there is no way to trigger an account change without physically disconnecting and reconnecting. I assume this is the same root cause as imported wallets are solana only Thanks, and look forward to the fix 👍 |
Beta Was this translation helpful? Give feedback.
-
Phantom chrome extension: v23.19.0 Hi, this was an issue that was resolved a couple of months back but seems to have crept back in recently. When switching between Solana wallets on a connected dApp (using Solana wallet adapter), nothing happens and the old wallet stays connected. Expected behaviour: the wallet change is picked up, so the user doesn't need to hard disconnect or refresh the page. This is especially critical for our multi-sig locking feature in biblio.tech as users need to sign with 2 wallets, the app polls awaiting a wallet change which never fires. Repro steps: visit jup.ag |
Beta Was this translation helpful? Give feedback.
Hey @joefitter, this is a bug. It was also identified here: https://github.com/orgs/phantom/discussions/104
We have a fix coming out in the next few weeks.