Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
fix: check for existence of proof object (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmarkovski authored Feb 20, 2022
1 parent f935008 commit eefaddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/deriveProof.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const deriveProof = async (
* @included tag messes up the canonicalized bytes leading to a bad
* signature that won't verify.
**/
if (compactProof.proof["@included"]) {
if (compactProof.proof?.["@included"]) {
compactProof.proof = compactProof.proof["@included"];
}

Expand Down

0 comments on commit eefaddf

Please sign in to comment.