From a9b522888ed0729e61cbea18bacece02205963b3 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 31 Jul 2014 17:04:24 -0700 Subject: [PATCH] Revert "paypro: remove debug code." This reverts commit 019283e04cb6b25f6431cb56f02618c6d9e7fe90. --- js/models/core/Wallet.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/js/models/core/Wallet.js b/js/models/core/Wallet.js index 5d833309f..8c47db7d8 100644 --- a/js/models/core/Wallet.js +++ b/js/models/core/Wallet.js @@ -1015,6 +1015,9 @@ Wallet.prototype.receivePaymentRequest = function(options, pr, cb) { total: bignum('0', 10).toString(10) }; + console.log('receivePaymentRequest'); + console.log(merchantData); + return this.getUnspent(function(err, unspent) { if (options.fetch) { self.createPaymentTxSync(options, merchantData, unspent); @@ -1187,6 +1190,9 @@ Wallet.prototype.createPaymentTxSync = function(options, merchantData, unspent) var signed = b.sign(keys); } + console.log('createPaymentTxSync:1'); + console.log(merchantData); + if (typeof merchantData.total === 'string') { merchantData.total = bignum(merchantData.total, 10); } @@ -1227,6 +1233,9 @@ Wallet.prototype.createPaymentTxSync = function(options, merchantData, unspent) merchantData.total = merchantData.total.toString(10); + console.log('createPaymentTxSync:2'); + console.log(merchantData); + if (options.fetch) return; this.log('');