networklist-org icon indicating copy to clipboard operation
networklist-org copied to clipboard

Incorporated Support for wallet_switchEthereumChain

Open morsela opened this issue 4 years ago • 1 comments

Description

EIP-3326 introduced the ability to switch between existing networks, including default ones. This PR introduces this new feature by trying to switch to an existing network, if it exists, before resolving to add the network (the recommended method according to metamask - see https://docs.metamask.io/guide/rpc-api.html#other-rpc-methods).

ref https://github.com/antonnell/networklist-org/issues/38 and https://github.com/antonnell/networklist-org/issues/35

Test Plan

Built the app, connected Metamask and tested successfully transitioning to multiple Ethereum test networks (Ropsten, Rinkeby) as well as adding new networks (e.g Expanse Network)

morsela avatar Jan 16 '22 23:01 morsela

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/antonnell/networklist-org/H5hYEgTeHWWDzbmt676yuihZGKth
✅ Preview: https://networklist-org-git-fork-morsela-walletswitche-30420a-antonnell.vercel.app

vercel[bot] avatar Jan 16 '22 23:01 vercel[bot]