Switching accounts causes wallet address to show as 0
srirambv opened this issue · 2 comments
srirambv commented
Description
Switching accounts causes wallet address to show as 0
Steps
- Create a Web3 call on talk.brave.com
- Connect a different wallet to join the call
- Open wallet panel and select connect
- Switch accounts from the one that is connected
- Webpage shows
Your wallet address 0
Actual Result
Incorrect.Wallet.Address.mov
Expected Result
Should update address similar to Desktop
brave_7hknJ0M5MB.mp4
Additional Information
Seems iOS specific. Android behaviour is similar to Desktop
StephenHeaps commented
This looks like an iOS issue with the accountsChanged
event. Checking brave-talk, we are expecting the accounts to be emitted as an array and the provider docs mention an array but iOS appears to be just providing the account address String (not in an array).
I believe this should be resolved with brave/brave-ios#7463.
StephenHeaps commented
I can confirm the above; this will be fixed with brave/brave-ios#7463. Currently targeting v1.52 for the fix. Thanks for the tag @srirambv