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