add missing returns

This commit is contained in:
Roman Storm 2019-12-18 19:36:41 -08:00
parent 4bdd6b25c0
commit c480707f63
1 changed files with 2 additions and 0 deletions

View File

@ -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({