Commit 07efd11
authored
feat: added mainnet monad to default getDefaultNetworkEnablementControllerState in network-enablement-controller (MetaMask#8743)
## Explanation
<!--
Thanks for your contribution! Take a moment to answer these questions so
that reviewers have the information they need to properly understand
your changes:
* What is the current state of things and why does it need to change?
* What is the solution your changes offer and how does it work?
* Are there any changes whose purpose might not obvious to those
unfamiliar with the domain?
* If your primary goal was to update one package but you found you had
to update another one along the way, why did you do so?
* If you had to upgrade a dependency, why did you do so?
-->
Adds mainnet Monad as a default enabled network.
## References
<!--
Are there any issues that this pull request is tied to?
Are there other links that reviewers should consult to understand these
changes better?
Are there client or consumer pull requests to adopt any breaking
changes?
For example:
* Fixes #12345
* Related to #67890
-->
- [MUSD-784: Mobile: Add Monad to default enabled
networks](https://consensyssoftware.atlassian.net/browse/MUSD-784)
## 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 communicated my changes to consumers by [updating changelogs
for packages I've
changed](https://github.com/MetaMask/core/tree/main/docs/processes/updating-changelogs.md)
- [ ] I've introduced [breaking
changes](https://github.com/MetaMask/core/tree/main/docs/processes/breaking-changes.md)
in this PR and have prepared draft pull requests for clients and
consumer packages to resolve them
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Low risk: this only changes the default enabled network list and
updates tests/changelog, with no behavioral logic changes beyond initial
state defaults for new users.
>
> **Overview**
> Adds Monad mainnet (`0x8f`, chain ID 143) to
`NetworkEnablementController`’s default `enabledNetworkMap` so new users
start with Monad enabled.
>
> Updates the unit test expectations (and related disable/fallback
scenarios) plus the package changelog to reflect the new default
network.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
54f7486. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 685b508 commit 07efd11
3 files changed
Lines changed: 23 additions & 0 deletions
File tree
- packages/network-enablement-controller
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
198 | 199 | | |
199 | 200 | | |
200 | 201 | | |
| |||
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
| 254 | + | |
253 | 255 | | |
254 | 256 | | |
255 | 257 | | |
| |||
314 | 316 | | |
315 | 317 | | |
316 | 318 | | |
| 319 | + | |
317 | 320 | | |
318 | 321 | | |
319 | 322 | | |
| |||
418 | 421 | | |
419 | 422 | | |
420 | 423 | | |
| 424 | + | |
421 | 425 | | |
422 | 426 | | |
423 | 427 | | |
| |||
455 | 459 | | |
456 | 460 | | |
457 | 461 | | |
| 462 | + | |
458 | 463 | | |
459 | 464 | | |
460 | 465 | | |
| |||
555 | 560 | | |
556 | 561 | | |
557 | 562 | | |
| 563 | + | |
558 | 564 | | |
559 | 565 | | |
560 | 566 | | |
| |||
1197 | 1203 | | |
1198 | 1204 | | |
1199 | 1205 | | |
| 1206 | + | |
1200 | 1207 | | |
1201 | 1208 | | |
1202 | 1209 | | |
| |||
1231 | 1238 | | |
1232 | 1239 | | |
1233 | 1240 | | |
| 1241 | + | |
1234 | 1242 | | |
1235 | 1243 | | |
1236 | 1244 | | |
| |||
1494 | 1502 | | |
1495 | 1503 | | |
1496 | 1504 | | |
| 1505 | + | |
1497 | 1506 | | |
1498 | 1507 | | |
1499 | 1508 | | |
| |||
1528 | 1537 | | |
1529 | 1538 | | |
1530 | 1539 | | |
| 1540 | + | |
1531 | 1541 | | |
1532 | 1542 | | |
1533 | 1543 | | |
| |||
1582 | 1592 | | |
1583 | 1593 | | |
1584 | 1594 | | |
| 1595 | + | |
1585 | 1596 | | |
1586 | 1597 | | |
1587 | 1598 | | |
| |||
1620 | 1631 | | |
1621 | 1632 | | |
1622 | 1633 | | |
| 1634 | + | |
1623 | 1635 | | |
1624 | 1636 | | |
1625 | 1637 | | |
| |||
1658 | 1670 | | |
1659 | 1671 | | |
1660 | 1672 | | |
| 1673 | + | |
1661 | 1674 | | |
1662 | 1675 | | |
1663 | 1676 | | |
| |||
1707 | 1720 | | |
1708 | 1721 | | |
1709 | 1722 | | |
| 1723 | + | |
1710 | 1724 | | |
1711 | 1725 | | |
1712 | 1726 | | |
| |||
1753 | 1767 | | |
1754 | 1768 | | |
1755 | 1769 | | |
| 1770 | + | |
1756 | 1771 | | |
1757 | 1772 | | |
1758 | 1773 | | |
| |||
1802 | 1817 | | |
1803 | 1818 | | |
1804 | 1819 | | |
| 1820 | + | |
1805 | 1821 | | |
1806 | 1822 | | |
1807 | 1823 | | |
| |||
1848 | 1864 | | |
1849 | 1865 | | |
1850 | 1866 | | |
| 1867 | + | |
1851 | 1868 | | |
1852 | 1869 | | |
1853 | 1870 | | |
| |||
1896 | 1913 | | |
1897 | 1914 | | |
1898 | 1915 | | |
| 1916 | + | |
1899 | 1917 | | |
1900 | 1918 | | |
1901 | 1919 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
| |||
0 commit comments