diff --git a/dist/miksi-browser.js b/dist/miksi-browser.js index b769ed8..785647b 100644 --- a/dist/miksi-browser.js +++ b/dist/miksi-browser.js @@ -76325,7 +76325,7 @@ exports.calcDepositWitness = async (wasm, secret, nullifier, commitments, key) = // old root const rootOld = tree.root; - const resOld = await tree.find(commitment); + const resOld = await tree.find(key); console.log("FIND old", resOld); let oldKey = "0"; let oldValue = "0"; diff --git a/src/miksi.ts b/src/miksi.ts index b62a1d2..6716044 100644 --- a/src/miksi.ts +++ b/src/miksi.ts @@ -40,7 +40,7 @@ exports.calcDepositWitness = async (wasm, secret, nullifier, commitments, key) = // old root const rootOld = tree.root; - const resOld = await tree.find(commitment); + const resOld = await tree.find(key); console.log("FIND old", resOld); let oldKey = "0"; let oldValue = "0";