move unused tree args to the right and provide defaults

This commit is contained in:
poma 2019-07-13 12:14:27 +03:00
parent 8f687ca146
commit 981325b1ff
5 changed files with 32 additions and 55 deletions

View file

@ -26,7 +26,7 @@ function generateDeposit() {
const dep2 = generateDeposit();
const dep3 = generateDeposit();
const tree = new merkleTree("", new jsStorage(), new mimcHasher(), 16, 0);
const tree = new merkleTree(16);
await tree.insert(dep1.commitment);
await tree.insert(dep2.commitment);