WalletConnect / walletconnect-test-wallet

Test Wallet (Web)
https://test.walletconnect.org/
MIT License
185 stars 119 forks source link

fix: account/network switch #73

Open vang1ong7ang opened 1 year ago

vang1ong7ang commented 1 year ago

fix the account (or network) switch bug:

when activeIndex ( orchainId) is 0 the variable newActiveIndex (or newChainId) is not set properly

vang1ong7ang commented 1 year ago

to reproduce the bug:

  1. switch to another address
  2. try to switch back to the first address (index = 0): FAIL
dusmart commented 1 year ago

why is the repo maintainer so lazy, this is a great PR