-
Notifications
You must be signed in to change notification settings - Fork 5k
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
fix: eth_accounts / accountsChanged behavior when wallet is locked #30067
fix: eth_accounts / accountsChanged behavior when wallet is locked #30067
Conversation
Builds ready [5e5f41e]
Page Load Metrics (1709 ± 68 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
} | ||
return []; // changing this is a breaking change | ||
return this.getPermittedAccounts(innerOrigin); |
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 change is breaking and will result in unintended behavior. We still need to return empty array for accounts in this hook when the wallet is locked
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.
@adonesky1 can you chime in here ?
Builds ready [5e5f41e]
Page Load Metrics (1709 ± 68 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Builds ready [418f591]
Page Load Metrics (1605 ± 60 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
closed, as #29936 supersedes this work |
Description
Refer to [#3853](https://github.com/MetaMask/MetaMask-planning/issues/3853)-->
Related issues
Fixes:
Manual testing steps
await window.ethereum.on('accountsChanged', console.log)
on consoleScreenshots/Recordings
Before
After
Screen.Recording.2025-02-03.at.15.44.50.mov
Pre-merge author checklist
Pre-merge reviewer checklist