-
Notifications
You must be signed in to change notification settings - Fork 180
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
feat: switch chain to mainnet on wallet re/connect #2085
Conversation
Moving to draft until new hdwallet version is published. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧂
This reverts commit f304b4f.
* wip * wip * wip * Revert "fix: make web great again (#2145)" This reverts commit 64d0631. * wip * wip * feat: match design * Revert "feat: switch chain to mainnet on wallet re/connect (#2085)" This reverts commit f304b4f. * feat: style improvements, add current chain icon * chore: PR cleanup * chore: add comment about optimistic switch * feat: improve chain-adapters-getting logic * chore: trigger CI * chore: update yarn.lock * feat: tackle self-review comments * chore: remove MM and XDEFI wrong network translations * chore: naming nitpicks * feat: semantic improvements, make supportedEvmChainIds a memoized expression * chore: chainId: string -> chainId: ChainId * fix: don't show chain switch menu if there's only one change * feat: bump @shapeshiftoss/chain-adapters to latest to automagically switch EVM chains on buildSendTransaction() * chore: don't optional chain nativeAsset.icon * chore: as any -> as ETHWallet Co-authored-by: 0xdef1cafe <88504456+0xdef1cafe@users.noreply.github.com>
Description
This switches the wallet's active chain to Ethereum Mainnet if set to any other chain, on wallet connect from splash screen / wallet reconnect when reloading the app.
Notice
Pull Request Type
Issue (if applicable)
Risk
None - this is isolated to MetaMask, XDEFI and TallyHo. If the wallet is set to Mainnet, the flow will continue as before.
Testing
Wallet Connect from splash screen
App reload
Screenshots (if applicable)