mirror of
https://github.com/tornadocash/tornado-core.git
synced 2025-05-06 08:15:41 -04:00
add erc20 to integration test
This commit is contained in:
parent
7a184d67d2
commit
c7f0ca9dfa
3 changed files with 8 additions and 7 deletions
8
cli.js
8
cli.js
|
@ -320,12 +320,16 @@ if (inBrowser) {
|
|||
else
|
||||
printHelp(1)
|
||||
break
|
||||
case 'auto':
|
||||
case 'test':
|
||||
if (args.length === 1) {
|
||||
(async () => {
|
||||
await init()
|
||||
const account = (await web3.eth.getAccounts())[0]
|
||||
const note = await deposit()
|
||||
await withdraw(note, (await web3.eth.getAccounts())[0])
|
||||
await withdraw(note, account)
|
||||
|
||||
const note2 = await deposit()
|
||||
await withdraw(note2, account, account)
|
||||
process.exit(0)
|
||||
})()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue