This commit is contained in:
Ivan Socolsky 2015-02-19 23:43:35 -03:00
parent 9cda811691
commit ea24403e6a
1 changed files with 4 additions and 4 deletions

View File

@ -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.');
});