Skip to content

sometimes the connection doesn't work #6613

@almoapple

Description

@almoapple

Bug Description
A clear and concise description of the bug.

After I used uniswap interface to connect to MetaMask, then I closed the page and reopened the page, sometimes I couldn’t connect.
Then I execute the following code in the console:
const provide = new _ethers.providers.Web3Provider(window.ethereum)
provide.provider.request({ method: ‘eth_chainId’ }).then((data) => console.log(data))
I found that this request is still in pending.

Steps to Reproduce
1、connect to a web3 website,such as uniswap\gmx
2、close the website after connected
3、open a new label,visit the connected site.
This problem is not inevitable, it takes multiple attempts. and do not open the console when open the site.
...

Expected Behavior

Additional Context
metamask version 10.30.2
explore: google chrome 113.0.5672.126
system: macos

i can reproduce in gmx, but ican‘t reproduce in dydx

c2afe9e0474cac642910e207d0926f7a8bec138d

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions