From 0489911cc8e6962088a15f01fa4dab2ca43e7a9b Mon Sep 17 00:00:00 2001 From: Daniel Rocha Date: Wed, 23 Aug 2023 17:40:02 +0200 Subject: [PATCH] Remove call to `_updateMemStoreKeyrings` (#20369) * Call the right `updateMemStoreKeyrings` method from `KeyringController` * fix: don't call redundant methods Co-authored-by: Michele Esposito <34438276+mikesposito@users.noreply.github.com> --------- Co-authored-by: Michele Esposito <34438276+mikesposito@users.noreply.github.com> --- app/scripts/metamask-controller.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 3e4a67eed..a0556e52b 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -1931,8 +1931,6 @@ export default class MetamaskController extends EventEmitter { getSnapKeyring: this.getSnapKeyring.bind(this), saveSnapKeyring: async () => { await this.keyringController.persistAllKeyrings(); - await this.keyringController._updateMemStoreKeyrings(); - await this.keyringController.fullUpdate(); }, ///: END:ONLY_INCLUDE_IN ///: BEGIN:ONLY_INCLUDE_IN(snaps)