Skip to content

Commit

Permalink
Get old merkle tree test working
Browse files Browse the repository at this point in the history
  • Loading branch information
ejMina226 committed Dec 3, 2024
1 parent d084e80 commit 21a0749
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/common/src/trees/LinkedMerkleTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ import { range } from "../utils";
import { LinkedMerkleTreeStore } from "./LinkedMerkleTreeStore";
import {
AbstractMerkleWitness,
createMerkleTree,
maybeSwap,
RollupMerkleTreeWitness,
} from "./RollupMerkleTree";
import { InMemoryLinkedMerkleLeafStore } from "./InMemoryLinkedMerkleLeafStore";

const RollupMerkleTreeWitness = createMerkleTree(40).WITNESS;
export class LinkedLeafStruct extends Struct({
value: Field,
path: Field,
Expand Down
2 changes: 1 addition & 1 deletion packages/common/src/trees/RollupMerkleTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ export function createMerkleTree(height: number): AbstractMerkleTreeClass {
};
}

export class RollupMerkleTree extends createMerkleTree(40) {}
export class RollupMerkleTree extends createMerkleTree(256) {}
export class RollupMerkleTreeWitness extends RollupMerkleTree.WITNESS {}

/**
Expand Down

0 comments on commit 21a0749

Please sign in to comment.