@metamask-previews/keyring-controller 21.0.6-preview-dedc8739 → 21.0.6-preview-d0bf3e9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,10 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
- ### Fixed
11
-
12
- - Metadata for unsupported keyring is removed on unlock ([#5725](https://github.com/MetaMask/core/pull/5725))
13
-
14
10
  ## [21.0.6]
15
11
 
16
12
  ### Changed
@@ -1387,7 +1387,6 @@ async function _KeyringController_unlockKeyrings(password, encryptionKey, encryp
1387
1387
  const updatedKeyrings = await __classPrivateFieldGet(this, _KeyringController_instances, "m", _KeyringController_getUpdatedKeyrings).call(this);
1388
1388
  this.update((state) => {
1389
1389
  state.keyrings = updatedKeyrings;
1390
- state.keyringsMetadata = __classPrivateFieldGet(this, _KeyringController_keyringsMetadata, "f").slice();
1391
1390
  if (updatedState.encryptionKey || updatedState.encryptionSalt) {
1392
1391
  state.encryptionKey = updatedState.encryptionKey;
1393
1392
  state.encryptionSalt = updatedState.encryptionSalt;
@@ -1608,11 +1607,6 @@ async function _KeyringController_restoreKeyring(serialized) {
1608
1607
  catch (error) {
1609
1608
  console.error(error);
1610
1609
  __classPrivateFieldGet(this, _KeyringController_unsupportedKeyrings, "f").push(serialized);
1611
- if (__classPrivateFieldGet(this, _KeyringController_keyringsMetadata, "f").length > __classPrivateFieldGet(this, _KeyringController_keyrings, "f").length) {
1612
- // There was already a metadata entry for the keyring, so
1613
- // we need to remove it
1614
- __classPrivateFieldGet(this, _KeyringController_keyringsMetadata, "f").splice(__classPrivateFieldGet(this, _KeyringController_keyrings, "f").length, 1);
1615
- }
1616
1610
  return undefined;
1617
1611
  }
1618
1612
  }, _KeyringController_destroyKeyring =