diff --git a/minimal-demo.js b/minimal-demo.js index bd536e8..fb94d15 100644 --- a/minimal-demo.js +++ b/minimal-demo.js @@ -156,6 +156,7 @@ async function main() { contract = new web3.eth.Contract(require('./build/contracts/ETHTornado.json').abi, CONTRACT_ADDRESS) const account = web3.eth.accounts.privateKeyToAccount('0x' + PRIVATE_KEY) web3.eth.accounts.wallet.add('0x' + PRIVATE_KEY) + // eslint-disable-next-line require-atomic-updates web3.eth.defaultAccount = account.address const note = await deposit() diff --git a/package-lock.json b/package-lock.json index 4c9d15b..4437c97 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1687,14 +1687,28 @@ } }, "circomlib": { - "version": "git+https://github.com/tornadocash/circomlib.git#347822604996bf25f659f96ee0f02810a1f71bb0", - "from": "git+https://github.com/tornadocash/circomlib.git#347822604996bf25f659f96ee0f02810a1f71bb0", + "version": "0.0.21", + "resolved": "https://registry.npmjs.org/circomlib/-/circomlib-0.0.21.tgz", + "integrity": "sha512-8WJS4W9sJJbQv8s9vRGq28qJpRKvF9ORUS58x3I8vgfAUGL2INaRjgteksGX/mIyR+Il3w7ido27GA2ZCmZrQw==", "requires": { "blake-hash": "^1.1.0", "blake2b": "^2.1.3", + "circom": "0.0.35", "snarkjs": "^0.1.20", "typedarray-to-buffer": "^3.1.5", "web3": "^1.0.0-beta.55" + }, + "dependencies": { + "circom": { + "version": "0.0.35", + "resolved": "https://registry.npmjs.org/circom/-/circom-0.0.35.tgz", + "integrity": "sha512-MWsJPYPH+s9wN2I5abEHUIAyFVsgTCy+UzJh///WnflXfh3c1tlbv8zt1VV+YHHREpyS+WF5ZBr7TujpaVFu5g==", + "requires": { + "big-integer": "^1.6.32", + "optimist": "^0.6.1", + "yargs": "^12.0.2" + } + } } }, "cli-cursor": { diff --git a/package.json b/package.json index cec34d8..f201688 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "chai": "^4.2.0", "chai-as-promised": "^7.1.1", "circom": "0.0.34", - "circomlib": "git+https://github.com/tornadocash/circomlib.git#347822604996bf25f659f96ee0f02810a1f71bb0", + "circomlib": "0.0.21", "commander": "^4.1.1", "dotenv": "^8.2.0", "eslint": "^6.6.0",