When switching Phantom wallet account with multi chain set to off the accountChanged event doesn't get triggered #104
-
SummaryI am trying to get the public key when the user changes account. It works fine when the multi chain is turned on but as soon as I set the multichain off it doesn't trigger the accountChange event. Here is the accountChanged event code provider.on('accountChanged', (publicKey: PublicKey) => { ExampleNo response Steps to Reproducenone Phantom Versionversion 23.13.0 Is there an existing discussion for this?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
@TanoliHA is this happening on main net? What method are you using to connect to the wallet? |
Beta Was this translation helpful? Give feedback.
-
@adamdelphantom Is there any update to this issue I am facing this issue with the next.js App router with "next": "14.2.3". It was working fine in our previous site code which is using next: 13. Which is kind of weird as I have just migrated the same code. Also this is not only happing with Phantom its also happening with Solflare. Here is how you can recreate this. Package.json
SolanaContextProvider
SolanaContextProvider is being used from the orignal code base that is working. I also tried https://solana.com/developers/guides/wallets/add-solana-wallet-adapter-to-nextjs but got the same thing AppWrapper
layout.tsx
|
Beta Was this translation helpful? Give feedback.
@TanoliHA Thank you for the offer but this appears to have been an internal bug. This should be fixed in version 23.15.0. Thank you again for reporting!