aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/keyrings
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-01-03 07:08:18 +0800
committerDan Finlay <dan@danfinlay.com>2017-01-03 07:08:18 +0800
commitaf2c7004b05ad985b9ec8fc16b8bbec1765bf062 (patch)
tree4b94a71279fd58d4c5d30fd9cb1b62917d629238 /app/scripts/keyrings
parent25d0ac147668e45da43a4dd74876e3e22bd6a246 (diff)
downloadtangerine-wallet-browser-af2c7004b05ad985b9ec8fc16b8bbec1765bf062.tar.gz
tangerine-wallet-browser-af2c7004b05ad985b9ec8fc16b8bbec1765bf062.tar.zst
tangerine-wallet-browser-af2c7004b05ad985b9ec8fc16b8bbec1765bf062.zip
Make single letter variables more verbose
Diffstat (limited to 'app/scripts/keyrings')
-rw-r--r--app/scripts/keyrings/simple.js8
1 files changed, 4 insertions, 4 deletions
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()