sometimes the connection doesn't work
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
Hey @zzmp, can we close this PR sine it already has a merged PR?