From 8db2f4178788b4ce0a950914b7a2211044a2202a Mon Sep 17 00:00:00 2001 From: Kanthesha Devaramane Date: Wed, 25 Sep 2024 12:55:28 +0100 Subject: [PATCH] metmask controller updated --- app/scripts/metamask-controller.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 1953c5989895..702c2dc981bc 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -288,9 +288,7 @@ import { NetworkOrderController } from './controllers/network-order'; import { AccountOrderController } from './controllers/account-order'; import createOnboardingMiddleware from './lib/createOnboardingMiddleware'; import { isStreamWritable, setupMultiplex } from './lib/stream-utils'; -import PreferencesController, { - getDefaultPreferencesControllerState, -} from './controllers/preferences-controller'; +import PreferencesController from './controllers/preferences-controller'; import AppStateController from './controllers/app-state'; import AlertController from './controllers/alert'; import OnboardingController from './controllers/onboarding'; @@ -1754,7 +1752,7 @@ export default class MetamaskController extends EventEmitter { this.controllerMessenger.registerActionHandler( 'PreferencesController:getState', - () => getDefaultPreferencesControllerState(), + () => this.preferencesController.state, ); this.tokenDetectionController = new TokenDetectionController({ messenger: tokenDetectionControllerMessenger,