-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix: Remove stateless "non-controllers" from background engine state #12348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Remove stateless "non-controllers" from background engine state #12348
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
5a7c4ec
to
875457e
Compare
This comment was marked as outdated.
This comment was marked as outdated.
85c17e1
to
b2d0f25
Compare
bb1f60a
to
6846d79
Compare
b2d0f25
to
a5229a4
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Motivation: this fixes inconsistent treatment of non-controllers and their state objects/types.
|
|
696dea8
to
f8da985
Compare
f8da985
to
16da771
Compare
|
This reverts commit 3194f6a.
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Great job splitting up this work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
Description
The engine context and background state currently include three "non-controllers" with empty/non-existent state:
AssetsContractController
,NftDetectionController
,TokenDetectionController
.These should be included in the engine context, but excluded from any representations of background state. This is not a disruptive change, as there are no downstream references to the state objects or state properties of these non-controllers.
For more information on non-controllers, see:
Related issues
@metamask/composable-controller
from^3.0.0
to^10.0.0
#10441Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist