From 9fc7a80adf3dc79a8a875224671f597e407c3eac Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Thu, 19 Feb 2015 23:45:08 -0300 Subject: [PATCH] fix sign & reject --- bit-wallet/bit-reject | 2 +- bit-wallet/bit-sign | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bit-wallet/bit-reject b/bit-wallet/bit-reject index bfd4f13..5f99aea 100755 --- a/bit-wallet/bit-reject +++ b/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.'); diff --git a/bit-wallet/bit-sign b/bit-wallet/bit-sign index 17c0a74..1450484 100755 --- a/bit-wallet/bit-sign +++ b/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.'); });