Skip to content

Commit

Permalink
use depth
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk committed Oct 17, 2023
1 parent 1dedd61 commit 46f59d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/verifiable/proof.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class IssuerData {
...this,
mtp: {
existence: this.mtp?.existence,
siblings: this.mtp?.siblings ? prepareSiblingsStr(this.mtp, 40) : [], // this.mtp?.siblings ? this.mtp.siblings.map(i => i.string()) : [],
siblings: this.mtp?.siblings ? prepareSiblingsStr(this.mtp, this.mtp.depth) : [], // this.mtp?.siblings ? this.mtp.siblings.map(i => i.string()) : [],
nodeAux: this.mtp?.nodeAux
}
};
Expand Down Expand Up @@ -83,7 +83,7 @@ export class Iden3SparseMerkleTreeProof {
...this,
mtp: {
existence: this.mtp.existence,
siblings: prepareSiblingsStr(this.mtp, 40), // this.mtp.siblings.map(i => i.string()),
siblings: prepareSiblingsStr(this.mtp, this.mtp.depth), // this.mtp.siblings.map(i => i.string()),
nodeAux: this.mtp.nodeAux
}
};
Expand Down

0 comments on commit 46f59d8

Please sign in to comment.