fix: SDK Connection when multichain account is selected#14494
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
8f7dbc5 to
cf3cb7d
Compare
|
b0c13ff to
5cf3751
Compare
|
5cf3751 to
242ce51
Compare
|
|
|
Working perfectly for SDK and WC on both inapp browser and from outside the MetaMask App. |



Description
This PR addresses an issue reported by @christopherferreira9. When connecting to the MetaMask SDK while your current selected account is a multichain account (solana, bitcoin etc), the AccountConnect component would not provide an account to be connected. The connect button was not disabled so when a user would press connect, it would fail since no account was selected. My solution is...
selectPreviouslySelectedEvmAccountwhich returns the previously selected EVM accountRelated issues
Fixes: #14426
Fixes #14427
Manual testing steps
.js.envfile such that the METAMASK_BUILD_TYPE is set tobetayarn setupScreenshots/Recordings
Before
430308727-fccc3b02-e00f-487e-861b-18444334b989.mov
After
Phone cam
screen-20250407-184309.mp4
Laptop cam
Screen.Recording.2025-04-07.at.6.42.13.PM.mov
Pre-merge author checklist
Pre-merge reviewer checklist