Skip to content

Commit

Permalink
Fix: fix parse bug in vc
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanxuu committed Sep 19, 2023
1 parent 0adee95 commit 062b06a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol/vc/src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function toMidenInput(data: VerifiableCredential<false>, leaves: number[]
finaResult = finaResult.concat(',', nonce.toString());

// and the corresponding authpath
const authPath = merkleTree.getProof(data.credentialSubjectHashes[k]);
const authPath = merkleTree.getProof(data.credentialSubjectHashes[k], k);

if (!authPath) throw new Error(`Can not find proof: ${nonces[k]}`);

Expand Down

0 comments on commit 062b06a

Please sign in to comment.