Skip to content

Commit 811d079

Browse files
committed
make #useEncryptionKey sync
1 parent 22ba2d5 commit 811d079

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/keyring-controller/src/KeyringController.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2168,10 +2168,7 @@ export class KeyringController extends BaseController<
21682168
* @param encryptionKey - The encryption key to use.
21692169
* @param encryptionSalt - The salt to use for the encryption key.
21702170
*/
2171-
async #useEncryptionKey(
2172-
encryptionKey: string,
2173-
encryptionSalt: string,
2174-
): Promise<void> {
2171+
#useEncryptionKey(encryptionKey: string, encryptionSalt: string): void {
21752172
this.#assertControllerMutexIsLocked();
21762173

21772174
if (
@@ -2355,7 +2352,7 @@ export class KeyringController extends BaseController<
23552352
await this.#deriveEncryptionKey(credentials.password);
23562353
} else {
23572354
const { exportedEncryptionKey } = credentials;
2358-
await this.#useEncryptionKey(
2355+
this.#useEncryptionKey(
23592356
exportedEncryptionKey,
23602357
parsedEncryptedVault.salt,
23612358
);

0 commit comments

Comments
 (0)