Skip to content

Commit

Permalink
feat: migrate AppStateController to inherit from BaseController V2
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptodev-2s committed Nov 28, 2024
1 parent a902677 commit 5c939d9
Show file tree
Hide file tree
Showing 7 changed files with 845 additions and 705 deletions.
4 changes: 2 additions & 2 deletions app/scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -1024,8 +1024,8 @@ export function setupController(
METAMASK_CONTROLLER_EVENTS.UPDATE_BADGE,
updateBadge,
);
controller.appStateController.on(
METAMASK_CONTROLLER_EVENTS.UPDATE_BADGE,
controller.controllerMessenger.subscribe(
METAMASK_CONTROLLER_EVENTS.APP_STATE_UNLOCK_CHANGE,
updateBadge,
);

Expand Down
Loading

0 comments on commit 5c939d9

Please sign in to comment.