urbit / bridge

An application for interacting with Azimuth.
MIT License
95 stars 25 forks source link

metamask: ensure expected chain ID #1083

Closed tomholford closed 1 year ago

tomholford commented 1 year ago

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

https://user-images.githubusercontent.com/16504501/207049240-fc6689e7-dccf-4601-a759-5b15d1df3c3c.mp4