From 5e79fec40de45deb0f229d30c87074bf1750e4a3 Mon Sep 17 00:00:00 2001 From: Ayanami Date: Fri, 14 Jan 2022 22:16:10 +0900 Subject: [PATCH] Fixed backup note bug --- cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli.js b/cli.js index 3c34685..945be36 100755 --- a/cli.js +++ b/cli.js @@ -123,7 +123,7 @@ function createDeposit({ nullifier, secret }) { async function backupNote({ currency, amount, netId, note, noteString }) { try { await fs.writeFileSync(`./backup-tornado-${currency}-${amount}-${netId}-${note.slice(0, 10)}.txt`, noteString, 'utf8'); - console.log("Backed up deposit note as",fileName) + console.log("Backed up deposit note as",`./backup-tornado-${currency}-${amount}-${netId}-${note.slice(0, 10)}.txt`) } catch (e) { throw new Error('Writing backup note failed:',e) }