core icon indicating copy to clipboard operation
core copied to clipboard

feat: add lastUpdatedAt to NetworkConfiguration

Open Prithpal-Sooriya opened this issue 1 year ago • 0 comments

Explanation

This allows tracking of when the network configuration was updated, which is used to enable accurate network syncing

References

Changelog

@metamask/network-controller

  • ADDED: optional lastUpdatedAt to the NetworkConfiguration state. Used for performing network syncing.
  • ADDED: logic to update the lastUpdatedAt when a network is added or updated.

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

Prithpal-Sooriya avatar Sep 03 '24 18:09 Prithpal-Sooriya