1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Make single letter variables more verbose

This commit is contained in:
Dan Finlay 2017-01-02 15:08:18 -08:00
parent 25d0ac1476
commit af2c7004b0
2 changed files with 5 additions and 5 deletions

View File

@ -508,7 +508,7 @@ module.exports = class KeyringController extends EventEmitter {
if (typeof password === 'string') { if (typeof password === 'string') {
this.password = password 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()]) return Promise.all([keyring.type, keyring.serialize()])
.then((serializedKeyringArray) => { .then((serializedKeyringArray) => {
// Label the output values on each serialized Keyring: // Label the output values on each serialized Keyring:

View File

@ -20,10 +20,10 @@ class SimpleKeyring extends EventEmitter {
} }
deserialize (privateKeys = []) { deserialize (privateKeys = []) {
this.wallets = privateKeys.map((w) => { this.wallets = privateKeys.map((privateKey) => {
const stripped = ethUtil.stripHexPrefix(w) const stripped = ethUtil.stripHexPrefix(privateKey)
const b = new Buffer(stripped, 'hex') const buffer = new Buffer(stripped, 'hex')
const wallet = Wallet.fromPrivateKey(b) const wallet = Wallet.fromPrivateKey(buffer)
return wallet return wallet
}) })
return Promise.resolve() return Promise.resolve()