mirror of
https://github.com/tornadocash/tornado-cli.git
synced 2024-10-01 07:15:36 -04:00
Fixed backup note bug
This commit is contained in:
parent
a08c6dbfb9
commit
5e79fec40d
2
cli.js
2
cli.js
@ -123,7 +123,7 @@ function createDeposit({ nullifier, secret }) {
|
|||||||
async function backupNote({ currency, amount, netId, note, noteString }) {
|
async function backupNote({ currency, amount, netId, note, noteString }) {
|
||||||
try {
|
try {
|
||||||
await fs.writeFileSync(`./backup-tornado-${currency}-${amount}-${netId}-${note.slice(0, 10)}.txt`, noteString, 'utf8');
|
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) {
|
} catch (e) {
|
||||||
throw new Error('Writing backup note failed:',e)
|
throw new Error('Writing backup note failed:',e)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user