Skip to content

Commit

Permalink
fix: prevent vault to be exposed to UI
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesposito committed Sep 27, 2023
1 parent d1f00a0 commit 579f639
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -2286,6 +2286,11 @@ export default class MetamaskController extends EventEmitter {

const flatState = this.memStore.getFlatState();

// The vault should not be exposed to the UI
if (flatState.KeyringController) {
delete flatState.KeyringController.vault;
}

return {
isInitialized,
...flatState,
Expand Down

0 comments on commit 579f639

Please sign in to comment.