Add the missingresetState method to NftController, TokensController, TokenBalancesController, and TokenRatesController. These methods are needed on mobile and are currently patched here: MetaMask Mobile Patch.
Added: Add resetState method to NftController, TokensController, TokenBalancesController and TokenRatesController to reset the controller's state back to their initial state
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
[ ] I've highlighted breaking changes using the "BREAKING" category above as appropriate
[ ] I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes
Explanation
Add the missing
resetState
method toNftController
,TokensController
,TokenBalancesController
, andTokenRatesController
. These methods are needed on mobile and are currently patched here: MetaMask Mobile Patch.References
Changelog
@metamask/assets-controllers
resetState
method toNftController
,TokensController
,TokenBalancesController
andTokenRatesController
to reset the controller's state back to their initial stateChecklist