MetaMask / core

This monorepo is a collection of packages used across multiple MetaMask clients
MIT License
293 stars 188 forks source link

[assets-controllers] add missing resetState method to 4 controllers #4881

Closed cryptodev-2s closed 3 weeks ago

cryptodev-2s commented 3 weeks ago

During the upgrade of certain asset controllers to inherit from BaseControllerV2, the reset method, which was previously used to reset the state of some controllers, became unavailable. This method is still required for MetaMask Mobile and is currently patched here: MetaMask Mobile Patch.

To address this, we should add the resetState method to NftController, TokensController, TokenBalancesController, and TokenRatesController.