diff --git a/bower.json b/bower.json index 45f6bf216..08385d414 100644 --- a/bower.json +++ b/bower.json @@ -8,7 +8,7 @@ ], "dependencies": { "angular": "1.4.6", - "angular-bitcore-wallet-client": "1.1.6", + "angular-bitcore-wallet-client": "1.1.7", "angular-foundation": "0.7.0", "angular-gettext": "2.1.0", "angular-moment": "0.10.1", diff --git a/src/js/services/profileService.js b/src/js/services/profileService.js index bb55cf604..e81b3e633 100644 --- a/src/js/services/profileService.js +++ b/src/js/services/profileService.js @@ -11,15 +11,13 @@ angular.module('copayApp.services') root.focusedClient = null; root.walletClients = {}; - root.getUtils = function() { - return bwcService.getUtils(); - }; + root.Utils = bwcService.getUtils(); root.formatAmount = function(amount) { var config = configService.getSync().wallet.settings; if (config.unitCode == 'sat') return amount; //TODO : now only works for english, specify opts to change thousand separator and decimal separator - return this.getUtils().formatAmount(amount, config.unitCode); + return this.Utils.formatAmount(amount, config.unitCode); }; root._setFocus = function(walletId, cb) { @@ -274,7 +272,7 @@ angular.module('copayApp.services') $log.debug('Joining Wallet:', opts); try { - var walletData = this.getUtils().fromSecret(opts.secret); + var walletData = bwcService.parseSecret(opts.secret); // check if exist if (lodash.find(root.profile.credentials, {