Browse Source

fix rm

activeAddress
Ivan Socolsky 10 years ago
parent
commit
ea24403e6a
  1. 8
      bit-wallet/bit-rm

8
bit-wallet/bit-rm

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

Loading…
Cancel
Save