Browse Source

fix sign & reject

activeAddress
Ivan Socolsky 10 years ago
parent
commit
9fc7a80adf
  1. 2
      bit-wallet/bit-reject
  2. 6
      bit-wallet/bit-sign

2
bit-wallet/bit-reject

@ -24,7 +24,7 @@ client.getTxProposals({}, function(err, txps) {
var txp = utils.findOneTxProposal(txps, txpid);
client.rejectTxProposal(txp, reason, function(err, tx) {
utils.die(err);
if (x.status == 'rejected')
if (tx.status == 'rejected')
console.log('Transaction finally rejected.');
else
console.log('Transaction rejected by you.');

6
bit-wallet/bit-sign

@ -20,10 +20,10 @@ client.getTxProposals({}, function(err, txps) {
utils.die(err);
var txp = utils.findOneTxProposal(txps, txpid);
client.signTxProposal(txp, function(err, x) {
client.signTxProposal(txp, function(err, tx) {
utils.die(err);
if (x.status == 'broadcasted')
console.log('Transaction Broadcasted: TXID: ' + x.txid);
if (tx.status == 'broadcasted')
console.log('Transaction Broadcasted: TXID: ' + tx.txid);
else
console.log('Transaction signed by you.');
});

Loading…
Cancel
Save