From 518b8fc82e26711bc6204d5e0d66bbf04b0844c1 Mon Sep 17 00:00:00 2001 From: nklomp Date: Fri, 13 Jan 2023 04:45:59 +0100 Subject: [PATCH] fix: missing awaits for signing presentations --- packages/vc-handler-ld-local/src/ld-credential-module.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vc-handler-ld-local/src/ld-credential-module.ts b/packages/vc-handler-ld-local/src/ld-credential-module.ts index 0437921db..c6ae2bb72 100644 --- a/packages/vc-handler-ld-local/src/ld-credential-module.ts +++ b/packages/vc-handler-ld-local/src/ld-credential-module.ts @@ -108,14 +108,14 @@ export class LdCredentialModule { if (key.type === 'Bls12381G2') { return await jsonld.sign(presentation, { - suite: suite.getSuiteForSigning(key, holderDid, verificationMethodId, context), + suite: await suite.getSuiteForSigning(key, holderDid, verificationMethodId, context), purpose, documentLoader, }) } return await vc.signPresentation({ presentation, - suite: suite.getSuiteForSigning(key, holderDid, verificationMethodId, context), + suite: await suite.getSuiteForSigning(key, holderDid, verificationMethodId, context), challenge, domain, documentLoader,