MetaMask / core

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

feat: add networkClientId as param for func ignoreTokens #4949

Closed salimtb closed 6 days ago

salimtb commented 6 days ago

Explanation

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

Checklist