core
core copied to clipboard
Query networks supporting simulation
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