useDApp icon indicating copy to clipboard operation
useDApp copied to clipboard

Base Network RPC is Wrong

Open chase-manning opened this issue 11 months ago • 1 comments

Describe the bug The Primary Base RPC is https://mainnet.base.org/. You can see this in their docs here: https://docs.base.org/docs/network-information/ However, currently the RPC for Base is set to https://base.org which is wrong. You can see this here: https://github.com/TrueFiEng/useDApp/blob/e0c8437b0726ff2c6b1b4772cf031d46941530e8/packages/core/src/model/chain/base.ts#L31C12-L31C28

The impact of this is that when you try to add the Base network using useDapp, it errors in the wallet.

To Reproduce Install Metamask, ensure you don't have the Base network already added. Import the Switch Network function const { switchNetwork } = useEthers(). Call switchNetwork(8453). You will get this error:

Image

Software versions Happens with the latest version of useDapp 1.2.16. Happens with yarn, npm, or anything.

chase-manning avatar Feb 05 '25 22:02 chase-manning

PR raised to fix issue: https://github.com/TrueFiEng/useDApp/pull/1173

chase-manning avatar Feb 05 '25 22:02 chase-manning