@metamask-previews/keyring-controller 25.0.0-preview-bfee350 → 25.0.0-preview-5c1b2b1
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.
|
@@ -594,9 +594,9 @@ export class KeyringController extends BaseController {
|
|
|
594
594
|
default:
|
|
595
595
|
throw new Error(`Unexpected import strategy: '${String(strategy)}'`);
|
|
596
596
|
}
|
|
597
|
-
const newKeyring =
|
|
597
|
+
const newKeyring = await __classPrivateFieldGet(this, _KeyringController_instances, "m", _KeyringController_newKeyring).call(this, KeyringTypes.simple, [
|
|
598
598
|
privateKey,
|
|
599
|
-
])
|
|
599
|
+
]);
|
|
600
600
|
const accounts = await newKeyring.getAccounts();
|
|
601
601
|
return accounts[0];
|
|
602
602
|
});
|
|
@@ -1301,7 +1301,7 @@ async function _KeyringController_getAccountsFromKeyrings(additionalKeyrings = [
|
|
|
1301
1301
|
*/
|
|
1302
1302
|
async function _KeyringController_createKeyringWithFirstAccount(type, opts) {
|
|
1303
1303
|
__classPrivateFieldGet(this, _KeyringController_instances, "m", _KeyringController_assertControllerMutexIsLocked).call(this);
|
|
1304
|
-
const keyring =
|
|
1304
|
+
const keyring = await __classPrivateFieldGet(this, _KeyringController_instances, "m", _KeyringController_newKeyring).call(this, type, opts);
|
|
1305
1305
|
const [firstAccount] = await keyring.getAccounts();
|
|
1306
1306
|
if (!firstAccount) {
|
|
1307
1307
|
throw new Error(KeyringControllerError.NoFirstAccount);
|