This commit is contained in:
Alexey 2019-12-13 23:36:32 +03:00
parent 68a861ed35
commit 6cd0ae8d87

4
cli.js
View File

@ -56,7 +56,7 @@ async function deposit() {
const deposit = createDeposit(rbigint(31), rbigint(31))
console.log('Submitting deposit transaction')
await mixer.methods.deposit(toHex(deposit.commitment)).send({ value: ETH_AMOUNT, from: senderAccount, gas:2e6 })
await tornado.methods.deposit(toHex(deposit.commitment)).send({ value: ETH_AMOUNT, from: senderAccount, gas:2e6 })
const note = toHex(deposit.preimage, 62)
console.log('Your note:', note)
@ -78,7 +78,7 @@ async function depositErc20() {
await erc20.methods.approve(erc20tornado._address, TOKEN_AMOUNT).send({ from: senderAccount, gas:1e6 })
console.log('Submitting deposit transaction')
await erc20mixer.methods.deposit(toHex(deposit.commitment)).send({ from: senderAccount, gas:2e6 })
await erc20tornado.methods.deposit(toHex(deposit.commitment)).send({ from: senderAccount, gas:2e6 })
const note = toHex(deposit.preimage, 62)
console.log('Your note:', note)