Uniswap / web3-react

A simple, maximally extensible, dependency minimized framework for building modern Ethereum dApps
https://web3-react-mu.vercel.app/
GNU General Public License v3.0
5.57k stars 1.52k forks source link

chainId undefined for xDai #389

Open jchaselubitz opened 2 years ago

jchaselubitz commented 2 years ago

When my wallet (MetaMask) is set to the xDai network (100), active returns false, and chainId returns undefined. Other networks (Polygon, Arbitrum, Kovan, etc.) behave as expected.

This is the hook I am using: const { activate, active, chainId } = useWeb3React<Web3Provider>();

React 17.02 Web3React v6 and v8

johanleroch commented 2 years ago

Same issue for me 👍

NoahZinsmeister commented 2 years ago

hm, i can't repro this. can you confirm this issue still exists after adding xDai through https://chainlist.org/ and visiting https://web3-react-mu.vercel.app/?