add missing returns

This commit is contained in:
Roman Storm 2019-12-18 19:36:41 -08:00
parent 4bdd6b25c0
commit c480707f63

@ -83,6 +83,7 @@ withdrawQueue.process(async function(job, done){
error: 'The note has been spent.' error: 'The note has been spent.'
} }
}) })
return
} }
const isKnownRoot = await mixer.methods.isKnownRoot(root).call() const isKnownRoot = await mixer.methods.isKnownRoot(root).call()
if (!isKnownRoot) { if (!isKnownRoot) {
@ -92,6 +93,7 @@ withdrawQueue.process(async function(job, done){
error: 'The merkle root is too old or invalid.' error: 'The merkle root is too old or invalid.'
} }
}) })
return
} }
let gas = await mixer.methods.withdraw(proof, ...args).estimateGas({ let gas = await mixer.methods.withdraw(proof, ...args).estimateGas({