MetaMask / core

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

fix: should not reset market data after switch network #4832

Closed salimtb closed 1 month ago

salimtb commented 1 month ago

Explanation

This Pull Request addresses an issue where market data would unnecessarily reset following a network switch. The purpose of this update is to ensure that market data remains intact and continues to function as expected after a network change, preventing potential data loss or disruptions in user experience

References

Changelog

@metamask/assets-controller

Checklist

salimtb commented 1 month ago

Should we also write a test: should append marketData for each chain? Or, is that not something included in this PR?

good idea , i'll add this test