Skip to content

Commit de847ec

Browse files
fix(wrapped-keys-lit-actions): LIT-3920 - Add missing await in generate methods
1 parent ba4e5e4 commit de847ec

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/wrapped-keys-lit-actions/src/lib/ethereum/generateEncryptedEthereumPrivateKey.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { encryptPrivateKey } from '../common/internal/encryptKey';
1919
{ waitForResponse: true, name: 'encryptEthereumPrivateKey' },
2020
async () =>
2121
JSON.stringify(
22-
encryptPrivateKey({
22+
await encryptPrivateKey({
2323
accessControlConditions,
2424
privateKey,
2525
publicKey,

packages/wrapped-keys-lit-actions/src/lib/solana/generateEncryptedSolanaPrivateKey.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ const { encryptPrivateKey } = require('../common/internal/encryptKey');
1616

1717
const encryptedKeyResultStr = await Lit.Actions.runOnce(
1818
{ waitForResponse: true, name: 'encryptSolanaPrivateKey' },
19-
() =>
19+
async () =>
2020
JSON.stringify(
21-
encryptPrivateKey({
21+
await encryptPrivateKey({
2222
accessControlConditions,
2323
publicKey,
2424
privateKey,

0 commit comments

Comments
 (0)