Skip to content

Commit

Permalink
Remove non-controllers from EngineState
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorLift committed Aug 1, 2024
1 parent a9204a5 commit 6ba9da2
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions app/core/Engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ import {
AddressBookControllerEvents,
AddressBookControllerState,
} from '@metamask/address-book-controller';
import { BaseState } from '@metamask/base-controller';
import { ComposableController } from '@metamask/composable-controller';
import {
KeyringController,
Expand Down Expand Up @@ -121,10 +120,10 @@ import {
SnapsRegistryState,
SnapControllerEvents,
SnapControllerActions,
PersistedSnapControllerState,
SnapsRegistryMessenger,
SnapsRegistryActions,
SnapsRegistryEvents,
PersistedSnapControllerState,
} from '@metamask/snaps-controllers';

import { WebViewExecutionService } from '@metamask/snaps-controllers/react-native';
Expand Down Expand Up @@ -347,7 +346,6 @@ type Permissions = PermissionsByRpcMethod[keyof PermissionsByRpcMethod];
export type EngineState = {
AccountTrackerController: AccountTrackerControllerState;
AddressBookController: AddressBookControllerState;
AssetsContractController: BaseState;
NftController: NftControllerState;
TokenListController: TokenListState;
CurrencyRateController: CurrencyRateState;
Expand All @@ -362,8 +360,6 @@ export type EngineState = {
SwapsController: SwapsState;
GasFeeController: GasFeeState;
TokensController: TokensControllerState;
TokenDetectionController: BaseState;
NftDetectionController: BaseState;
///: BEGIN:ONLY_INCLUDE_IF(preinstalled-snaps,external-snaps)
SnapController: PersistedSnapControllerState;
SnapsRegistry: SnapsRegistryState;
Expand Down Expand Up @@ -2010,7 +2006,6 @@ export default {
const {
AccountTrackerController,
AddressBookController,
AssetsContractController,
NftController,
TokenListController,
CurrencyRateController,
Expand All @@ -2026,8 +2021,6 @@ export default {
SwapsController,
GasFeeController,
TokensController,
TokenDetectionController,
NftDetectionController,
///: BEGIN:ONLY_INCLUDE_IF(preinstalled-snaps,external-snaps)
SnapController,
SubjectMetadataController,
Expand Down

0 comments on commit 6ba9da2

Please sign in to comment.