aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorbrunobar79 <brunobar79@gmail.com>2018-08-15 10:40:29 +0800
committerbrunobar79 <brunobar79@gmail.com>2018-08-15 10:40:29 +0800
commit82a5ed1e03e0a6a9bc19b946bc178b236d9aaa98 (patch)
tree5efb82036978c520e6ed60d2ba38f87090415d93 /app
parentfdf202efb066008f6625ba15cec8bcaef1edfec6 (diff)
downloadtangerine-wallet-browser-82a5ed1e03e0a6a9bc19b946bc178b236d9aaa98.tar
tangerine-wallet-browser-82a5ed1e03e0a6a9bc19b946bc178b236d9aaa98.tar.gz
tangerine-wallet-browser-82a5ed1e03e0a6a9bc19b946bc178b236d9aaa98.tar.bz2
tangerine-wallet-browser-82a5ed1e03e0a6a9bc19b946bc178b236d9aaa98.tar.lz
tangerine-wallet-browser-82a5ed1e03e0a6a9bc19b946bc178b236d9aaa98.tar.xz
tangerine-wallet-browser-82a5ed1e03e0a6a9bc19b946bc178b236d9aaa98.tar.zst
tangerine-wallet-browser-82a5ed1e03e0a6a9bc19b946bc178b236d9aaa98.zip
remove console logs
Diffstat (limited to 'app')
-rw-r--r--app/scripts/metamask-controller.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index ac188c4df..1e1aa035f 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -551,21 +551,15 @@ module.exports = class MetamaskController extends EventEmitter {
default:
throw new Error('MetamaskController:getKeyringForDevice - Unknown device')
}
- console.log('getting keyring for device ', deviceName, hdPath)
let keyring = await this.keyringController.getKeyringsByType(keyringName)[0]
- console.log('got Keyring', keyring)
if (!keyring) {
- console.log('we did not so lets add it', keyringName)
keyring = await this.keyringController.addNewKeyring(keyringName)
- console.log('what about now', keyring)
}
- console.log('setting hdPath', hdPath)
if (hdPath && keyring.setHdPath) {
keyring.setHdPath(hdPath)
}
keyring.network = this.networkController.getProviderConfig().type
- console.log('setting network', keyring.network)
return keyring
@@ -635,7 +629,7 @@ module.exports = class MetamaskController extends EventEmitter {
this.preferencesController.setAddresses(newAccounts)
newAccounts.forEach(address => {
if (!oldAccounts.includes(address)) {
- this.preferencesController.setAccountLabel(address, `${deviceName.toUpperCase()} #${parseInt(index, 10) + 1}`)
+ this.preferencesController.setAccountLabel(address, `${deviceName.toUpperCase()} ${parseInt(index, 10) + 1}`)
this.preferencesController.setSelectedAddress(address)
}
})