From a519205647be4bbf433ae8a6f5f773705c9da443 Mon Sep 17 00:00:00 2001 From: Jongsun Suh Date: Wed, 31 Jul 2024 19:27:09 -0400 Subject: [PATCH] Remove `ts-expect-error` directive from `TransactionController:stateChange` due to `@metamask/transaction-controller` version upgrade --- app/core/Engine.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/core/Engine.ts b/app/core/Engine.ts index 2261c76fc97..98c5968bfde 100644 --- a/app/core/Engine.ts +++ b/app/core/Engine.ts @@ -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. @@ -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',