You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: use internalAccount instead of account address for granular updates (#4693)
This PR replaces the parameter for `UserStorageController`
`saveInternalAccountToUserStorage` from an account address to an
`InternalAccount`.
This helps because we're listening to `AccountsController` events and
they are passing an `InternalAccount` as their return value. By using
this return value directly, we remove some unnecessary logic & queries.
## Explanation
## References
## Changelog
### `@metamask/profile-sync-controller`
- **CHANGED**: use `InternalAccount` instead of account address for
`saveInternalAccountToUserStorage` parameter
## Checklist
- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] I've highlighted breaking changes using the "BREAKING" category
above as appropriate
0 commit comments