web3-react icon indicating copy to clipboard operation
web3-react copied to clipboard

Switching to localhost:8545 network not working [bug] [v8.beta]

Open KarafiziArtur opened this issue 3 years ago • 5 comments

🛠️ Config

Node 16.15.0 Yarn 1.22.19 Code and other config from example-next

Context

We have our working blockchain in docker that is exposed on localhost:8545, with blockExplorer on localhost:8080. I've added the chain data to chains.js in your example-next:

1337: {
    urls: ['http://localhost:8545'],
    name: 'Besu',
    nativeCurrency: {
        name: "BESU",
        symbol: "BESU",
        decimals: 18,
    },
    blockExplorerUrls: ['http://localhost:8080'],
  },

Problem

When I try to switch to this network - it's asking again and again continuously and not switching to the network. Everything was working with old versions, the same chain were switching correctly, but now it's working like on the following video:

https://user-images.githubusercontent.com/6214770/186404881-8b276b9a-21ef-4d41-b6aa-8f01dfe76d02.mov

What could be a problem?

KarafiziArtur avatar Aug 24 '22 11:08 KarafiziArtur

Could this be related to #660 ?

tychezone avatar Aug 28 '22 01:08 tychezone

Could this be related to #660 ?

I think it could be a part I see here two bugs: localhost rpcUrl is not handled well and loop with changing a network to localhost It looks like localhost is not correctly handled inside the beta version because in the old version it was working correctly

KarafiziArtur avatar Aug 28 '22 14:08 KarafiziArtur

@KarafiziArtur do you remember in which version this was working as intended?

tychezone avatar Sep 01 '22 22:09 tychezone

@KarafiziArtur do you remember in which version this was working as intended?

As I've checked the dependencies of the previous version of our projects it was 6.1.9 of web3-react/core

KarafiziArtur avatar Sep 19 '22 13:09 KarafiziArtur

Hi, Any news about this bug ? Look's like it is always present in those version:

    "@web3-react/coinbase-wallet": "^8.1.2-beta.0",
    "@web3-react/core": "^8.1.2-beta.0",
    "@web3-react/gnosis-safe": "^8.1.2-beta.0",
    "@web3-react/metamask": "^8.1.2-beta.0",
    "@web3-react/network": "^8.1.2-beta.0",
    "@web3-react/types": "^8.1.2-beta.0",
    "@web3-react/walletconnect": "^8.1.2-beta.0",
    "@web3-react/walletconnect-v2": "^8.1.3-beta.0",

jeanbenoit-richez avatar May 16 '23 07:05 jeanbenoit-richez