From d4bf80de6e272afe87e0b92648a50af6b23c9085 Mon Sep 17 00:00:00 2001 From: nikdementev Date: Thu, 29 Jul 2021 18:17:35 +0300 Subject: [PATCH] fix: check spent note --- cli.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli.js b/cli.js index fd77c19..81fbf23 100755 --- a/cli.js +++ b/cli.js @@ -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({