Uniswap / Uniswap/interface

Bug: Changing networks occasionally randomly detaches wallet

Open
#4,127 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

When switching networks, I've experienced multiple times that Metamask connection (not tested with other wallets yet) will visually appear to disconnect, showing connect wallet instead. Upon refreshing browers, it will appear as if it was still connected the whole time
image

Steps to Reproduce
I cannot reliably reproduce this bug, but will ususally run into it if i repeatedly switch networks and refresh browser

  1. Switch network
  2. Confirm in MetaMask
  3. Connect Wallet will occasionally appear instead of expected network switch & existing wallet

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 reported sequence in the interface with MetaMask: switch networks, confirm the change, and refresh repeatedly. Since reproduction is intermittent and no files or tests are named, trace the wallet connection state around network changes first. Done means the existing wallet remains shown as connected after switching networks and refreshing.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.