From 3f4e686899a940a717c6d2663262ff5ffa507bd8 Mon Sep 17 00:00:00 2001 From: Alexey Date: Tue, 10 Sep 2019 17:31:19 +0300 Subject: [PATCH] fix cli.js --- cli.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cli.js b/cli.js index d2a4e62..0a75947 100755 --- a/cli.js +++ b/cli.js @@ -118,8 +118,6 @@ async function getBalance(receiver) { console.log('Balance is ', web3.utils.fromWei(balance)) } -const inBrowser = (typeof window !== 'undefined') - /** * Init web3, contracts, and snark */ @@ -133,7 +131,7 @@ async function init() { circuit = await (await fetch('build/circuits/withdraw.json')).json() proving_key = await (await fetch('build/circuits/withdraw_proving_key.bin')).arrayBuffer() MERKLE_TREE_HEIGHT = 16 - AMOUNT = 1e18 + ETH_AMOUNT = 1e18 EMPTY_ELEMENT = 1 } else { // Initialize from local node