|
|
@ -3,7 +3,7 @@ |
|
|
|
var _ = require('lodash'); |
|
|
|
var program = require('commander'); |
|
|
|
var Client = require('../lib/client'); |
|
|
|
var common = require('./common'); |
|
|
|
var utils = require('./cli-utils'); |
|
|
|
|
|
|
|
program |
|
|
|
.version('0.0.1') |
|
|
@ -24,15 +24,15 @@ var cli = new Client({ |
|
|
|
}); |
|
|
|
|
|
|
|
cli.getTxProposals({}, function(err, txps) { |
|
|
|
common.die(err); |
|
|
|
utils.die(err); |
|
|
|
|
|
|
|
if (program.verbose) |
|
|
|
console.log('* Raw Server Response:\n', txps); //TODO |
|
|
|
|
|
|
|
var txp = common.findOneTxProposal(txps, txpid); |
|
|
|
var txp = utils.findOneTxProposal(txps, txpid); |
|
|
|
|
|
|
|
cli.removeTxProposal(txp, function(err) { |
|
|
|
common.die(err); |
|
|
|
utils.die(err); |
|
|
|
|
|
|
|
console.log('Transaction removed.'); |
|
|
|
}); |
|
|
|