Merge pull request #989 from yemel/feature/pre-created-address

Add a pre-generated address to the shared branch
This commit is contained in:
Gustavo Maximiliano Cortez 2014-08-01 11:04:58 -03:00
commit 854196e72a
5 changed files with 18 additions and 7 deletions

View file

@ -185,13 +185,14 @@ angular.module('copayApp.services')
root.updateAddressList = function() {
var w = $rootScope.wallet;
if (w)
if (w && w.isReady())
$rootScope.addrInfos = w.getAddressesInfo();
};
root.updateBalance = function(cb) {
var w = $rootScope.wallet;
if (!w) return root.onErrorDigest();
if (!w.isReady()) return;
$rootScope.balanceByAddr = {};
$rootScope.updatingBalance = true;