Skip to content

Conversation

@morsela
Copy link

@morsela morsela commented Jan 16, 2022

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 #38 and #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)

@vercel
Copy link

vercel bot commented Jan 16, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants