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 9a19494
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -2286,6 +2286,9 @@ export default class MetamaskController extends EventEmitter {

const flatState = this.memStore.getFlatState();

// The vault should not be exposed to the UI
delete flatState.KeyringController.vault;

return {
isInitialized,
...flatState,
Expand Down

0 comments on commit 9a19494

Please sign in to comment.