Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorporated Support for wallet_switchEthereumChain #43

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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