Skip to content

238.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 01 Nov 17:33
b1c2479

@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)