Skip to content

Commit

Permalink
fix: missing awaits for signing presentations
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Jan 13, 2023
1 parent bdbf4ef commit 518b8fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vc-handler-ld-local/src/ld-credential-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 518b8fc

Please sign in to comment.