Uniswap / Uniswap/interface

Not able to switch network Trustwallet dapp browser chainID sticks

Open
#3,617 0 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
Trust wallet locks to a single network and unable to change, not sure if it's wallet related since the trustwallet has a different setup for selecting chain ID.

Steps to Reproduce
open trustwallet connect to uniswap after try to change chain (either in UI or wallet)

Steps to change chain ID
I am only able to switch after clearing all app data and re initializing the wallet with seed, at this point I'm able to choose the locked chain ID, by using the correct chain in the URL ie
https://app.uniswap.org/#/swap?chain=mainnet for ETHER
https://app.uniswap.org/#/swap?chain=polygon for poly

first time loading will ask for wallet connection, at this point it is needed to choose the same network used in the URL by clicking the wallet and selecting the chain
should load to proper chain.
Screenshot_20220328-211036
Screenshot_20220328-211043

repeat steps to change networks :(

Expected Behavior
using either UI or wallet (preferably both) would allow to change between chains

Additional Context
Screenshot_20220328-201412
Screenshot_20220328-204117

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 issue in Trust Wallet's dapp browser with the mentioned Uniswap swap URLs for mainnet and Polygon. Compare changing the chain from the Uniswap UI and wallet, including after reconnecting; done means switching between those chains works without clearing app data or reinitializing the wallet.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.