@metamask-previews/keyring-controller 22.0.1-preview-69122ec → 22.0.2-preview-53749f1
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.
|
@@ -1671,9 +1671,9 @@ async function _KeyringController_assertNoDuplicateAccounts(additionalKeyrings =
|
|
|
1671
1671
|
*/
|
|
1672
1672
|
async function _KeyringController_persistOrRollback(callback) {
|
|
1673
1673
|
return __classPrivateFieldGet(this, _KeyringController_instances, "m", _KeyringController_withRollback).call(this, async ({ releaseLock }) => {
|
|
1674
|
-
const oldState = await __classPrivateFieldGet(this, _KeyringController_instances, "m", _KeyringController_getSessionState).call(this);
|
|
1674
|
+
const oldState = JSON.stringify(await __classPrivateFieldGet(this, _KeyringController_instances, "m", _KeyringController_getSessionState).call(this));
|
|
1675
1675
|
const callbackResult = await callback({ releaseLock });
|
|
1676
|
-
const newState = await __classPrivateFieldGet(this, _KeyringController_instances, "m", _KeyringController_getSessionState).call(this);
|
|
1676
|
+
const newState = JSON.stringify(await __classPrivateFieldGet(this, _KeyringController_instances, "m", _KeyringController_getSessionState).call(this));
|
|
1677
1677
|
// State is committed only if the operation is successful and need to trigger a vault update.
|
|
1678
1678
|
if (!isEqual(oldState, newState)) {
|
|
1679
1679
|
await __classPrivateFieldGet(this, _KeyringController_instances, "m", _KeyringController_updateVault).call(this);
|