Browse Source

fix src/miksi.ts tree.find(key) in deposit

pull/2/head
arnaucube 4 years ago
parent
commit
d9275d8e14
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      dist/miksi-browser.js
  2. +1
    -1
      src/miksi.ts

+ 1
- 1
dist/miksi-browser.js

@ -76325,7 +76325,7 @@ exports.calcDepositWitness = async (wasm, secret, nullifier, commitments, key) =
// old root // old root
const rootOld = tree.root; const rootOld = tree.root;
const resOld = await tree.find(commitment);
const resOld = await tree.find(key);
console.log("FIND old", resOld); console.log("FIND old", resOld);
let oldKey = "0"; let oldKey = "0";
let oldValue = "0"; let oldValue = "0";

+ 1
- 1
src/miksi.ts

@ -40,7 +40,7 @@ exports.calcDepositWitness = async (wasm, secret, nullifier, commitments, key) =
// old root // old root
const rootOld = tree.root; const rootOld = tree.root;
const resOld = await tree.find(commitment);
const resOld = await tree.find(key);
console.log("FIND old", resOld); console.log("FIND old", resOld);
let oldKey = "0"; let oldKey = "0";
let oldValue = "0"; let oldValue = "0";

Loading…
Cancel
Save