-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use
internalAccount
instead of account address for granul…
…ar 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
- Loading branch information
1 parent
6f716b6
commit 908215f
Showing
2 changed files
with
21 additions
and
36 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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