Crash occurring during the execution of getWalletIdAndNameByAccountAddress.
Sentry Issue: METAMASK-YH74
TypeError: Cannot read properties of undefined (reading 'toLowerCase')
at find (ui/selectors/multichain-accounts/account-tree.ts:197:32)
at Array.find (<anonymous>)
at exports.getWalletIdAndNameByAccountAddress (ui/selectors/multichain-accounts/account-tree.ts:196:40)
at e.<computed> (/metamask/scripts/sentry-install.js:1:760)
at e.<computed> (/metamask/scripts/sentry-install.js:1:760)
...
(40 additional frame(s) were not displayed)
Notes
- Possible cause: State corruption - The underlying cause is an invalid wallet state.
- The wallet contains multiple Snap keyrings (it should contain only one).
- Specific account IDs reference entropy source IDs that no longer exist in the actual keyrings.
- This state likely occurs when using Snaps or after a user has utilized a "wallet reset flow" previously (e.g., forgetting a password and resetting).
- Seer diagnose
- What Happened: TypeError accessing 'toLowerCase' on an undefined property within
account.address.
- In the Trace: Error occurs during confirmation flow, likely after state updates via
forceUpdateMetamaskState.
- Initial Guess: The
senderAddress used to select account info is undefined or points to an account lacking an address property.
Crash occurring during the execution of
getWalletIdAndNameByAccountAddress.Sentry Issue: METAMASK-YH74
Notes
account.address.forceUpdateMetamaskState.senderAddressused to select account info is undefined or points to an account lacking an address property.