Skip to content

Commit

Permalink
fix: add fence to snap code in accountscontroller
Browse files Browse the repository at this point in the history
  • Loading branch information
montelaidev committed Aug 3, 2023
1 parent f3a17c5 commit fe9a421
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -1112,16 +1112,20 @@ export default class MetamaskController extends EventEmitter {
messenger: accountsControllerMessenger,
state: initState.AccountsController,
keyringController: this.keyringController,
///: BEGIN:ONLY_INCLUDE_IN(keyring-snaps)
snapController: this.snapController,
///: END:ONLY_INCLUDE_IN
identities: initState.PreferencesController?.identities,
onKeyringStateChange: keyringControllerMessenger.subscribe.bind(
keyringControllerMessenger,
'KeyringController:stateChange',
),
///: BEGIN:ONLY_INCLUDE_IN(keyring-snaps)
onSnapStateChange: this.controllerMessenger.subscribe.bind(
this.controllerMessenger,
'SnapController:stateChange',
),
///: END:ONLY_INCLUDE_IN
});

///: BEGIN:ONLY_INCLUDE_IN(desktop)
Expand Down

0 comments on commit fe9a421

Please sign in to comment.