diff --git a/app-template/package-template.json b/app-template/package-template.json index b323223c9..270916e27 100644 --- a/app-template/package-template.json +++ b/app-template/package-template.json @@ -56,7 +56,7 @@ "bezier-easing": "^2.0.3", "bhttp": "1.2.1", "bitauth": "^0.2.1", - "bitcore-wallet-client": "6.2.0", + "bitcore-wallet-client": "6.2.1", "bower": "^1.7.9", "cordova-android": "5.1.1", "cordova-custom-config": "^3.0.5", diff --git a/src/js/services/historicLog.js b/src/js/services/historicLog.js index 88446ae54..f044206d0 100644 --- a/src/js/services/historicLog.js +++ b/src/js/services/historicLog.js @@ -34,6 +34,7 @@ angular.module('copayApp.services') }; root.add = function(level, msg) { + msg = msg.replace('/xpriv.*/', 'xpriv[Hidden]'); logs.push({ timestamp: new Date().toISOString(), level: level, diff --git a/src/js/services/profileService.js b/src/js/services/profileService.js index 109fee8b2..af6f43582 100644 --- a/src/js/services/profileService.js +++ b/src/js/services/profileService.js @@ -322,7 +322,6 @@ angular.module('copayApp.services') var walletClient = bwcService.getClient(null, opts); var network = opts.networkName || 'livenet'; -console.log('[profileService.js.324]'); //TODO if (opts.mnemonic) { try { opts.mnemonic = root._normalizeMnemonic(opts.mnemonic); @@ -392,10 +391,13 @@ console.log('[profileService.js.324]'); //TODO // Creates a wallet on BWC/BWS var doCreateWallet = function(opts, cb) { - $log.debug('Creating Wallet:', opts); + var showOpts = lodash.clone(opts); + if (showOpts.extendedPrivateKey) showOpts.extendedPrivateKey='[hidden]'; + if (showOpts.mnemonic) showOpts.mnemonic='[hidden]'; + + $log.debug('Creating Wallet:', showOpts); $timeout(function() { seedWallet(opts, function(err, walletClient) { -console.log('[profileService.js.395:walletClient:]',walletClient); //TODO if (err) return cb(err); var name = opts.name || gettextCatalog.getString('Personal Wallet'); @@ -407,7 +409,6 @@ console.log('[profileService.js.395:walletClient:]',walletClient); //TODO walletPrivKey: opts.walletPrivKey, coin: opts.coin }, function(err, secret) { -console.log('[profileService.js.407:err:]',err); //TODO if (err) return bwcError.cb(err, gettextCatalog.getString('Error creating wallet'), cb); return cb(null, walletClient, secret); });