The ignoreTokens function does not include networkClientId as a parameter, which can lead to errors when attempting to hide a token that belongs to a different chain. The function currently searches for tokens within the current chain only. To resolve this issue, the solution is to add networkClientId as a parameter, ensuring the function operates correctly across chains.
References
Changelog
@metamask/assets-controllers
CHANGED: the function ignore tokens can take now networkClientId as optional parameter
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
[x] I've highlighted breaking changes using the "BREAKING" category above as appropriate
[x] I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes
Explanation
The
ignoreTokens
function does not includenetworkClientId
as a parameter, which can lead to errors when attempting to hide a token that belongs to a different chain. The function currently searches for tokens within the current chain only. To resolve this issue, the solution is to addnetworkClientId
as a parameter, ensuring the function operates correctly across chains.References
Changelog
@metamask/assets-controllers
Checklist