fix: check spent note

This commit is contained in:
nikdementev 2021-07-29 18:17:35 +03:00
parent c3653bf6e4
commit d4bf80de6e
No known key found for this signature in database
GPG Key ID: 769B05D57CF16FE2
1 changed files with 2 additions and 1 deletions

3
cli.js
View File

@ -758,8 +758,9 @@ async function main() {
console.log('From :', `https://${getCurrentNetworkName()}etherscan.io/address/${depositInfo.from}`)
console.log('Transaction :', `https://${getCurrentNetworkName()}etherscan.io/tx/${depositInfo.txHash}`)
console.log('Commitment :', depositInfo.commitment)
if (deposit.isSpent) {
if (!deposit.isSpent) {
console.log('The note was not spent')
return
}
const withdrawInfo = await loadWithdrawalData({