Update MetaMask Connect docs and bump version to 2.1.1#2984
Merged
Conversation
Add comprehensive documentation for account switching, session reconnection, and error handling. Include new troubleshooting guides for cancellation normalization, sign-only dapps, and unexpected account switches. Clarify account ordering behavior, chainChanged event timing, and mobile QR modal handling. Update version requirement from @metamask/connect-evm@^2.1.0 to @metamask/connect-evm@^2.1.1 in wagmi quickstart.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
yashovardhan
approved these changes
Jul 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add comprehensive documentation for account switching, session reconnection, and error handling. Include new troubleshooting guides for cancellation normalization, sign-only dapps, and unexpected account switches. Clarify account ordering behavior, chainChanged event timing, and mobile QR modal handling. Update version requirement from @metamask/connect-evm@^2.1.0 to @metamask/connect-evm@^2.1.1 in wagmi quickstart.
Issue(s) fixed
Fixes #
Preview
Checklist
External contributor checklist
Note
Low Risk
Markdown documentation and version string updates only; no runtime or application code changes.
Overview
Documentation-only updates for MetaMask Connect EVM: guides and troubleshooting now cover account re-selection (
connectwithforceRequest: true), EIP-2255 mapping (wallet_requestPermissions/wallet_revokePermissions), and reconnect pitfalls (don't rely onaccounts[0], merged sessions).Troubleshooting expands with normalized user-rejection handling (
code53 /rpcCode4001), a split explanation ofsupportedNetworksfailures (post-connect signing vs4902switch), sign-only / SIWE guidance (broad network config orprovider.selectedChainId), mobile deeplink vs QR whenui.showInstallModalis true, and unexpected account switch after reconnect.Reference notes clarify SDK account ordering,
chainChangedduring connect, andui.showInstallModalmobile behavior. The Wagmi quickstart bumps the required package to@metamask/connect-evm@^2.1.1.Reviewed by Cursor Bugbot for commit f4a147e. Bugbot is set up for automated code reviews on this repo. Configure here.