From d9275d8e1427f0b4b50ff801007be597feeabe8f Mon Sep 17 00:00:00 2001 From: arnaucube Date: Wed, 20 May 2020 21:02:06 +0200 Subject: [PATCH] fix src/miksi.ts tree.find(key) in deposit --- dist/miksi-browser.js | 2 +- src/miksi.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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";