Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: underlying network changed #3903

Open
leo-web3 opened this issue Jun 12, 2022 · 0 comments
Open

Error: underlying network changed #3903

leo-web3 opened this issue Jun 12, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@leo-web3
Copy link

Bug Description
A clear and concise description of the bug.

I am very sorry that I raised this issus,
I use your open source code a lot on my project, I am attracted by your code, so I am very happy to use your code on my project, during my development, I encountered a problem, I I don't know if anyone else has raised it, but I still reproduce this problem in the production of uniswap, so I think I can raise it for you to see if it needs to be dealt with

Steps to Reproduce

  1. Copy https://app.uniswap.org/#/swap?chain=polygon in open
    Open new Brower Tabs
    !!!Please open it directly, do not refresh, do not click in from another page, directly copy the link and paste it into the address bar to open
  2. Open Brower Console error looks
    console error
    useBlockNumber.tsx:59 Failed to get block number for chainId 137 Error: underlying network changed (event="changed", network={"name":"homestead","chainId":1,"ensAddress":"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"}, detectedNetwork={"name":"matic","chainId":137,"ensAddress":null,"_defaultProvider":null}, code=NETWORK_ERROR, version=providers/5.6.2)

Expected Behavior
no error

solution
in web3-react issus
web3-react issues #127
image

change getLibrary to any

Additional Context
image

image

@leo-web3 leo-web3 added the bug Something isn't working label Jun 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant