mirror of
https://github.com/tornadocash/tornado-core.git
synced 2024-10-01 01:06:17 -04:00
cli auto command
This commit is contained in:
parent
caaedbc959
commit
66f6ee9589
12
cli.js
12
cli.js
@ -172,6 +172,18 @@ if (inBrowser) {
|
||||
else
|
||||
printHelp(1)
|
||||
break
|
||||
case 'auto':
|
||||
if (args.length === 1) {
|
||||
(async () => {
|
||||
await init()
|
||||
const note = await deposit()
|
||||
await withdraw(note, (await web3.eth.getAccounts())[0])
|
||||
process.exit(0)
|
||||
})()
|
||||
}
|
||||
else
|
||||
printHelp(1)
|
||||
break
|
||||
|
||||
default:
|
||||
printHelp(1)
|
||||
|
Loading…
Reference in New Issue
Block a user