Currently, the TokenDetectionController detects tokens only for the active network when switching accounts. This behavior does not account for the added networks in the NetworkController. Consequently, token detection is limited and does not cover all networks where the user might have assets.
References
Changelog
@metamask/assets-controllers
ADDED: Token detection now supports all added networks when switching accounts.
Checklist
[x] I've updated the test suite for new or updated code as appropriate
[ ] 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
Currently, the TokenDetectionController detects tokens only for the active network when switching accounts. This behavior does not account for the added networks in the NetworkController. Consequently, token detection is limited and does not cover all networks where the user might have assets.
References
Changelog
@metamask/assets-controllers
Checklist