kaiesh / connect-web3-wallets

Helpful JS libs to connect various self-custody web3 wallets
GNU General Public License v3.0
8 stars 5 forks source link

After connect, disconnect: can't connect to something else #7

Open php4fan opened 2 years ago

php4fan commented 2 years ago

Let's say you have two wallet applications installed on your phone, both supporting WalletConnect. For example, MetaMask and U-Wallet.

Once you have connected to MetaMask, and even after you disconnect, there is no way to connect to U-Wallet.

  1. Open the demo in Chrome on Android.
  2. Click on "Connect"
  3. Select "WalletConnect"
  4. in WalletConnect's dialog choose the "mobile" tab and click on Connect
  5. When prompted by the OS, choose MetaMask
  6. in MetaMask, accept the connection
  7. Now back to the demo, click Disconnect
  8. restart from step 1.

Expected: should repeat all the steps as above, allowing me to choose U-Wallet at step 4 instead of MetaMask.

Observed: jumps from step 2 to 6. That is, when you choose WalletConnect in the KV dialog, it is already connected to MetaMask, and doesn't let you connect to anything else instead.

This does NOT happen with https://example.walletconnect.org/ so this must not be a bug in WalletConnect itself.

php4fan commented 2 years ago

The workaround is to clear cookies.