Commit 6cac875
authored
fix(accounts-controller): workaround compiler error for recursive type (MetaMask#6432)
## Explanation
Narrowing the `AccountControllerState` internally to avoid facing this
issue:
- MetaMask/utils#168
This has no impact on the controller behavior or interface, it's purely
related to the type-system and compiler errors.
I had errors when I was running the test locally with the compiler, but
the CI ran fine. Now, it runs fine on both environment with no
error/warning.
## References
N/A
## 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
- [ ] I've communicated my changes to consumers by [updating changelogs
for packages I've
changed](https://github.com/MetaMask/core/tree/main/docs/contributing.md#updating-changelogs),
highlighting breaking changes as necessary
- [ ] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes1 parent f386e24 commit 6cac875
2 files changed
Lines changed: 48 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
479 | 480 | | |
480 | 481 | | |
481 | 482 | | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
| 483 | + | |
| 484 | + | |
490 | 485 | | |
491 | 486 | | |
492 | 487 | | |
| |||
529 | 524 | | |
530 | 525 | | |
531 | 526 | | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
| 527 | + | |
538 | 528 | | |
539 | 529 | | |
540 | 530 | | |
| |||
615 | 605 | | |
616 | 606 | | |
617 | 607 | | |
618 | | - | |
619 | | - | |
620 | | - | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
621 | 613 | | |
622 | 614 | | |
623 | 615 | | |
| |||
906 | 898 | | |
907 | 899 | | |
908 | 900 | | |
909 | | - | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
910 | 904 | | |
911 | 905 | | |
912 | 906 | | |
913 | 907 | | |
914 | 908 | | |
915 | | - | |
| 909 | + | |
916 | 910 | | |
917 | 911 | | |
918 | 912 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
0 commit comments