core icon indicating copy to clipboard operation
core copied to clipboard

Query networks supporting simulation

Open matthewwalsh0 opened this issue 1 year ago • 0 comments

Explanation

Currently the networks supporting transaction simulation are hardcoded along with their associated subdomains.

This PR instead queries the supported networks dynamically using the /networks endpoint to automatically support new networks without requiring a new controller and client release.

References

Fixes #2268

Changelog

@metamask/transaction-controller

  • CHANGED: Determine networks supporting simulation dynamically using API.

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

matthewwalsh0 avatar Mar 19 '24 20:03 matthewwalsh0