mirror of
https://github.com/tornadocash/tornado-relayer.git
synced 2025-09-27 03:17:54 -04:00
add missing returns
This commit is contained in:
parent
4bdd6b25c0
commit
c480707f63
1 changed files with 2 additions and 0 deletions
|
@ -83,6 +83,7 @@ withdrawQueue.process(async function(job, done){
|
|||
error: 'The note has been spent.'
|
||||
}
|
||||
})
|
||||
return
|
||||
}
|
||||
const isKnownRoot = await mixer.methods.isKnownRoot(root).call()
|
||||
if (!isKnownRoot) {
|
||||
|
@ -92,6 +93,7 @@ withdrawQueue.process(async function(job, done){
|
|||
error: 'The merkle root is too old or invalid.'
|
||||
}
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
let gas = await mixer.methods.withdraw(proof, ...args).estimateGas({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue