Uh oh!
There was an error while loading. Please reload this page.
feat: upgrade AccountTrackerController to BaseControllerV2 - #4407
Conversation
…o-base-controller-v2
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…o-base-controller-v2
Uh oh!
There was an error while loading. Please reload this page.
…o-base-controller-v2
Uh oh!
There was an error while loading. Please reload this page.
Explanation
In this PR, the
AccountTrackerControllerhas been updated toBaseControllerV2. The upgrade involves theAccountTrackerControllernow inheriting fromStaticIntervalPollingControllerinstead ofStaticIntervalPollingControllerV1. This change affects the constructor by removing deprecatedconfigproperties, keeping only theintervaloption as a constructor parameter. Additionally, theproviderproperty has been removed, as it is now directly retrieved by actions from NetworkState.References
Fixes#4071
Changelog
@metamask/assets-controllerAdded
AccountTrackerControllermessenger actionsAccountTrackerControllerGetStateActionAccountTrackerControllermessenger eventsAccountTrackerControllerStateChangeEventChanged
AccountTrackerControllerfrom StaticIntervalPollingControllerV1 to StaticIntervalPollingControllerAccountTrackerStatetoAccountTrackerControllerStateRemoved
AccountTrackerConfigtypeChecklist