mirror of
https://github.com/tornadocash/tornado-cli.git
synced 2025-05-02 14:36:15 -04:00
fix: check spent note
This commit is contained in:
parent
c3653bf6e4
commit
d4bf80de6e
1 changed files with 2 additions and 1 deletions
3
cli.js
3
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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue