@metamask-previews/keyring-controller 25.0.0-preview-159e76e4 → 25.0.0-preview-7cfbb337

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.
@@ -617,9 +617,9 @@ class KeyringController extends base_controller_1.BaseController {
617
617
  default:
618
618
  throw new Error(`Unexpected import strategy: '${String(strategy)}'`);
619
619
  }
620
- const newKeyring = (await __classPrivateFieldGet(this, _KeyringController_instances, "m", _KeyringController_newKeyring).call(this, KeyringTypes.simple, [
620
+ const newKeyring = await __classPrivateFieldGet(this, _KeyringController_instances, "m", _KeyringController_newKeyring).call(this, KeyringTypes.simple, [
621
621
  privateKey,
622
- ]));
622
+ ]);
623
623
  const accounts = await newKeyring.getAccounts();
624
624
  return accounts[0];
625
625
  });
@@ -1325,7 +1325,7 @@ async function _KeyringController_getAccountsFromKeyrings(additionalKeyrings = [
1325
1325
  */
1326
1326
  async function _KeyringController_createKeyringWithFirstAccount(type, opts) {
1327
1327
  __classPrivateFieldGet(this, _KeyringController_instances, "m", _KeyringController_assertControllerMutexIsLocked).call(this);
1328
- const keyring = (await __classPrivateFieldGet(this, _KeyringController_instances, "m", _KeyringController_newKeyring).call(this, type, opts));
1328
+ const keyring = await __classPrivateFieldGet(this, _KeyringController_instances, "m", _KeyringController_newKeyring).call(this, type, opts);
1329
1329
  const [firstAccount] = await keyring.getAccounts();
1330
1330
  if (!firstAccount) {
1331
1331
  throw new Error(constants_1.KeyringControllerError.NoFirstAccount);