1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 03:20:23 +01:00

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>
This commit is contained in:
Daniel Rocha 2023-08-23 17:40:02 +02:00 committed by GitHub
parent b296f48c11
commit 0489911cc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1931,8 +1931,6 @@ export default class MetamaskController extends EventEmitter {
getSnapKeyring: this.getSnapKeyring.bind(this), getSnapKeyring: this.getSnapKeyring.bind(this),
saveSnapKeyring: async () => { saveSnapKeyring: async () => {
await this.keyringController.persistAllKeyrings(); await this.keyringController.persistAllKeyrings();
await this.keyringController._updateMemStoreKeyrings();
await this.keyringController.fullUpdate();
}, },
///: END:ONLY_INCLUDE_IN ///: END:ONLY_INCLUDE_IN
///: BEGIN:ONLY_INCLUDE_IN(snaps) ///: BEGIN:ONLY_INCLUDE_IN(snaps)