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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
@metamask/assets-controllers 42.0.0
Added
Add resetState method to NftController, TokensController, TokenBalancesController and TokenRatesController to reset the controller's state back to their default state (#4880)
Changed
BREAKING: A platform argument must now be passed to the TokenDetectionController constructor, indicating whether the platform is extension or mobile. (#4877)
BREAKING: The TokenRatesController now accepts {chainId: Hex} as its polling input to startPolling() instead of {networkClientId: NetworkClientId} (#4887)
When the TokenRatesController's subscription to TokensController:stateChange is fired, token prices are now updated across all chain IDs whose tokens changed, instead of just the current chain. (#4866)
The TokenDetectionController now passes a x-metamask-clientproduct header when calling the account API. (#4877)