fix: check spent note
This commit is contained in:
parent
c3653bf6e4
commit
d4bf80de6e
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('From :', `https://${getCurrentNetworkName()}etherscan.io/address/${depositInfo.from}`)
|
||||||
console.log('Transaction :', `https://${getCurrentNetworkName()}etherscan.io/tx/${depositInfo.txHash}`)
|
console.log('Transaction :', `https://${getCurrentNetworkName()}etherscan.io/tx/${depositInfo.txHash}`)
|
||||||
console.log('Commitment :', depositInfo.commitment)
|
console.log('Commitment :', depositInfo.commitment)
|
||||||
if (deposit.isSpent) {
|
if (!deposit.isSpent) {
|
||||||
console.log('The note was not spent')
|
console.log('The note was not spent')
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const withdrawInfo = await loadWithdrawalData({
|
const withdrawInfo = await loadWithdrawalData({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user