Uniswap / Uniswap/interface

Balances are not loading on Rinkeby when you connect with WalletConnect

Open
#2,897 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
5.5k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Bug Description
If you connect to Rinkeby network by scanning QR code from WalletConnect and some wallet like MetamaskMobile or Gnosis-safe, and open token list, most of the coin balances are not going to load.

Screenshot from 2021-12-01 14-34-59

Steps to Reproduce

  1. Go to Uniswap
  2. Make sure you are not connected to WalletConnect or that you don't have walletconnect in localStorage
  3. Click on Connect Wallet and select WalletConnect and the QR code should open
  4. In your MetamaskMobile app you should be on Rinkeby network
  5. Scan the QR code
  6. After the connection click on Select token button in Uniswap
  7. The balances are stuck on loading

Expected Behavior
After the WalletConnect connection on Rinkeby the balances should load correctly

Additional Context
It looks like the WalletConnect is making requests to Mainet https://mainnet.infura.io/v3/099fc58e0de9451d80b18d7c74caa7c1 instead of Rinkeby https://rinkeby.infura.io/v3/099fc58e0de9451d80b18d7c74caa7c1. Then after you reload the page and connect again without scanning the QR code it will load the balances correctly. This issue seems to occur after updating @web3-react/walletconnect-connector to version higher then ^6.2.4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the WalletConnect flow on Rinkeby and inspect the connection handling around @web3-react/walletconnect-connector, especially the version change above ^6.2.4. Confirm that token balances request the Rinkeby endpoint rather than mainnet after scanning the QR code, and verify that balances load without a page reload.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.