brave/brave-talk

Switching accounts causes wallet address to show as 0

srirambv opened this issue · 2 comments

Description

Switching accounts causes wallet address to show as 0

Steps

  1. Create a Web3 call on talk.brave.com
  2. Connect a different wallet to join the call
  3. Open wallet panel and select connect
  4. Switch accounts from the one that is connected
  5. 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

cc: @mrose17 @johnhalbert @StephenHeaps @nuo-xu

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.

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 👍.

Simulator.Screen.Recording.-.iPhone.14.Pro.-.2023-05-16.at.17.55.23.mp4