chore: remove references to lamassu-cancel script
This commit is contained in:
parent
8e173cf8a8
commit
dc40881640
2 changed files with 0 additions and 26 deletions
|
|
@ -1,25 +0,0 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
const uuid = require('uuid')
|
||||
|
||||
const tx = require('../lib/cash-out/cash-out-tx.js')
|
||||
|
||||
const argv = process.argv.slice(2)
|
||||
|
||||
if (argv.length !== 1) {
|
||||
console.log('Usage: lamassu-cancel <tx-id>')
|
||||
console.log('Cancels the cash out transaction with given tx-id so it cannot be dispensed.')
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
const txId = argv[0]
|
||||
|
||||
if (!uuid.validate(txId)) {
|
||||
console.log('tx-id must be valid uuid. e.g.: f8093ded-c542-4916-8ab5-6ebeceb287c1')
|
||||
process.exit(2)
|
||||
}
|
||||
|
||||
tx.cancel(txId)
|
||||
.then(() => console.log('Success.'))
|
||||
.catch(err => console.log(`Error: ${err.message}`))
|
||||
.then(() => process.exit(0))
|
||||
Loading…
Add table
Add a link
Reference in a new issue