Skip to content

Commit

Permalink
doc: clean up and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasRidhuan committed Nov 10, 2024
1 parent cd8cc02 commit 1d2c13b
Show file tree
Hide file tree
Showing 2 changed files with 253 additions and 131 deletions.
6 changes: 3 additions & 3 deletions yarn-project/simulator/src/avm/avm_tree.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('Simple Note Hash Consistency', () => {
const treeId = MerkleTreeId.NOTE_HASH_TREE;
const treeContainer = await EphemeralTreeContainer.create(copyState);
for (let i = 0; i < noteHashes.length; i++) {
await treeContainer.appendLeaf(treeId, noteHashes[i]);
await treeContainer.appendNoteHash(noteHashes[i]);
}
await worldStateTrees.appendLeaves(treeId, noteHashes);

Expand All @@ -81,7 +81,7 @@ describe('Simple Note Hash Consistency', () => {
const treeContainer = await EphemeralTreeContainer.create(copyState);

for (let i = 0; i < postInserted.length; i++) {
await treeContainer.appendLeaf(treeId, postInserted[i]);
await treeContainer.appendNoteHash(postInserted[i]);
}
await worldStateTrees.appendLeaves(treeId, preInserted.concat(postInserted));

Expand Down Expand Up @@ -224,7 +224,7 @@ describe('Big Random Avm Ephemeral Container Test', () => {
[new PublicDataTreeLeaf(slots[i], values[i]).toBuffer()],
0,
);
await treeContainer.appendLeaf(MerkleTreeId.NOTE_HASH_TREE, noteHashes[i]);
await treeContainer.appendNoteHash(noteHashes[i]);
await treeContainer.appendNullifier(indexedHashes[i]);
await treeContainer.writePublicStorage(slots[i], values[i]);
}
Expand Down
Loading

0 comments on commit 1d2c13b

Please sign in to comment.