Skip to content

Commit

Permalink
Correct incorrect assumption around proofs
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJem committed Aug 21, 2024
1 parent ff6bbc5 commit 2b047fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/oz-merkle-tree/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type Proof = {
root: string;
entries: {
value: string[];
proof: string;
proofs: string[];
}[];
};

Expand All @@ -25,7 +25,7 @@ const generateMerkleTree = (name: string, values: any[][], types: string[]) => {

proofs.entries.push({
value: v as string[],
proof: proof[0],
proofs: proof,
});
}

Expand Down
2 changes: 2 additions & 0 deletions packages/oz-merkle-tree/test.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
address,amount
0x0000000000000000000000000000000000000004,5000000000000000000
0x0000000000000000000000000000000000000020,0
0x0000000000000000000000000000000000000021,50
0x0000000000000000000000000000000000000022,60

0 comments on commit 2b047fd

Please sign in to comment.