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

metamask: ensure expected chain ID #1083

Merged
merged 1 commit into from
Dec 12, 2022

Conversation

tomholford
Copy link
Collaborator

Context

Before this change, it was possible to have Metamask connected to another EVM chain (e.g. Optimism), or a testnet (e.g. Goerli) while using Mainnet Bridge. This resolves #1082 by conducting a check for the expected chain ID in the connected wallet during Login, and requesting to update it if necessary.

Preview

bridge_ensure_chain_id-2022-12-12_04.44.20.mp4

Before this change, it was possible to have Metamask connected to
another EVM chain (e.g. Optimism), or a testnet (e.g. Goerli) while
using Mainnet Bridge. This resolves #1082 by conducting a check for
the expected chain ID in the connected wallet during Login, and
requesting to update it if necessary.
@tomholford tomholford marked this pull request as ready for review December 12, 2022 12:52
Copy link
Contributor

@arthyn arthyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@tomholford tomholford merged commit aded1fe into master Dec 12, 2022
@tomholford tomholford deleted the t/1082-confirm-metamask-chain-id branch December 12, 2022 23:00
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.

Confirm network connected to when using Metamask
2 participants