-
-
Notifications
You must be signed in to change notification settings - Fork 278
[preferences-controller] React to keyring state changes #3794
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or requestteam-wallet-frameworkDeprecated: Please use `team-core-platform` instead.Deprecated: Please use `team-core-platform` instead.
Description
The PreferencesController should listen for KeyringController state changes, and react to them appropriately. Specifically it should listen for account additions and removals, and ensure the selected address always points at an address that exists.
Today it doesn't react to these event changes because it relies upon the KeyringController calling the PreferencesController methods to update state. This is error prone and makes the KeyringController more complex than we'd like, and introduces a circular dependency between the controllers that would be nice to avoid.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestteam-wallet-frameworkDeprecated: Please use `team-core-platform` instead.Deprecated: Please use `team-core-platform` instead.