Uniswap / Uniswap/interface

Lost connection to Metamask when switching connection to Optimism

Open
#4,198 0 comments 2 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

Lost connection to Metamask when switching connection to Optimism.

Steps to Reproduce

  1. open https://app.uniswap.org/#/swap?chain=mainnet
  2. connect Metamask wallet
  3. go to Metamask plugin and switch chain to Optimism (please take attention that switching chain should be done in Metamask, and not via Uniswap UI)

Uniswap shows that wallet is not connected, choosed chain reset to Ethereum.

Expected Behavior

Uniswap should keep connection to Metamask, chain should be changed to Optimism

Additional Context

Please take attention that switching chain should be done in Metamask, and not via Uniswap UI

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

Reproduce the issue at https://app.uniswap.org/#/swap?chain=mainnet by connecting MetaMask and switching from Ethereum to Optimism in the MetaMask plugin. Trace the wallet and chain-change handling from the interface entry points; done means the wallet remains connected and the selected chain changes to Optimism.

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.