Skip to content

Commit

Permalink
Remove ts-expect-error directive from `TransactionController:stateC…
Browse files Browse the repository at this point in the history
…hange` due to `@metamask/transaction-controller` version upgrade
  • Loading branch information
MajorLift committed Jul 31, 2024
1 parent 07d1fe0 commit 6209b1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/core/Engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1504,6 +1504,7 @@ class Engine {
'SubjectMetadataController:stateChange',
'TokenListController:stateChange',
'TokensController:stateChange',
'TransactionController:stateChange',

/**
* V1/V2 controllers incorrectly defined with a `messagingSystem` that is missing its `stateChange` event.
Expand All @@ -1526,8 +1527,6 @@ class Engine {
'SnapsRegistry:stateChange',
// @ts-expect-error BaseControllerV2, `TokenBalancesControllerState` import error
'TokenBalancesController:stateChange',
// @ts-expect-error BaseControllerV1, has `messagingSystem` but as private field, messenger defined without `stateChange` event type
'TransactionController:stateChange',
// @ts-expect-error BaseControllerV2, messenger defined without `stateChange` event type
'UserStorageController:stateChange',

Expand Down

0 comments on commit 6209b1f

Please sign in to comment.