diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-01-03 07:08:18 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-01-03 07:08:18 +0800 |
commit | af2c7004b05ad985b9ec8fc16b8bbec1765bf062 (patch) | |
tree | 4b94a71279fd58d4c5d30fd9cb1b62917d629238 /app | |
parent | 25d0ac147668e45da43a4dd74876e3e22bd6a246 (diff) | |
download | tangerine-wallet-browser-af2c7004b05ad985b9ec8fc16b8bbec1765bf062.tar tangerine-wallet-browser-af2c7004b05ad985b9ec8fc16b8bbec1765bf062.tar.gz tangerine-wallet-browser-af2c7004b05ad985b9ec8fc16b8bbec1765bf062.tar.bz2 tangerine-wallet-browser-af2c7004b05ad985b9ec8fc16b8bbec1765bf062.tar.lz tangerine-wallet-browser-af2c7004b05ad985b9ec8fc16b8bbec1765bf062.tar.xz tangerine-wallet-browser-af2c7004b05ad985b9ec8fc16b8bbec1765bf062.tar.zst tangerine-wallet-browser-af2c7004b05ad985b9ec8fc16b8bbec1765bf062.zip |
Make single letter variables more verbose
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/keyring-controller.js | 2 | ||||
-rw-r--r-- | app/scripts/keyrings/simple.js | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/app/scripts/keyring-controller.js b/app/scripts/keyring-controller.js index 05c4a26fa..92429f7f5 100644 --- a/app/scripts/keyring-controller.js +++ b/app/scripts/keyring-controller.js @@ -508,7 +508,7 @@ module.exports = class KeyringController extends EventEmitter { if (typeof password === 'string') { this.password = password } - return Promise.all(this.keyrings.map((keyring, i) => { + return Promise.all(this.keyrings.map((keyring) => { return Promise.all([keyring.type, keyring.serialize()]) .then((serializedKeyringArray) => { // Label the output values on each serialized Keyring: diff --git a/app/scripts/keyrings/simple.js b/app/scripts/keyrings/simple.js index 6b4f9e710..9717f1c45 100644 --- a/app/scripts/keyrings/simple.js +++ b/app/scripts/keyrings/simple.js @@ -20,10 +20,10 @@ class SimpleKeyring extends EventEmitter { } deserialize (privateKeys = []) { - this.wallets = privateKeys.map((w) => { - const stripped = ethUtil.stripHexPrefix(w) - const b = new Buffer(stripped, 'hex') - const wallet = Wallet.fromPrivateKey(b) + this.wallets = privateKeys.map((privateKey) => { + const stripped = ethUtil.stripHexPrefix(privateKey) + const buffer = new Buffer(stripped, 'hex') + const wallet = Wallet.fromPrivateKey(buffer) return wallet }) return Promise.resolve() |