From f5fd03ad3c369f078a026843e308f730d23032d2 Mon Sep 17 00:00:00 2001 From: Gustavo Cortez Date: Thu, 17 Apr 2014 17:01:45 -0300 Subject: [PATCH] Fix refactory for createTx. --- js/models/core/Wallet.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/js/models/core/Wallet.js b/js/models/core/Wallet.js index df720d418..b30de0771 100644 --- a/js/models/core/Wallet.js +++ b/js/models/core/Wallet.js @@ -285,9 +285,9 @@ Wallet.prototype.getTotalBalance = function(cb) { Wallet.prototype.getBalance = function(addrs, cb) { var balance = 0; - this.listUnspent(addrs, function(unspent) { - for(var i=0;i