Even when account API detection succeeded, it was doing an additional, redundant RPC based detection on the same chains.
References
Changelog
@metamask/assets-controllers: Fixes an issue where the token detection was unnecessarily falling back to an RPC approach, causing redundant detections.
Checklist
[ ] 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
Even when account API detection succeeded, it was doing an additional, redundant RPC based detection on the same chains.
References
Changelog
Checklist