Skip to content

Commit

Permalink
metmask controller updated
Browse files Browse the repository at this point in the history
  • Loading branch information
kanthesha committed Sep 25, 2024
1 parent d9dd731 commit 8db2f41
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 8db2f41

Please sign in to comment.