diff options
author | kumavis <kumavis@users.noreply.github.com> | 2016-11-23 04:23:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-23 04:23:55 +0800 |
commit | e61d792832381a66e7393d32e1bc2c359834f919 (patch) | |
tree | 8ecd86cae8bb50fe928ce591529ec02a8fba557d /app/scripts/lib | |
parent | 1a8d95f5627aac6e122f7a1c905d2d23f5a0758d (diff) | |
parent | 8261cf232d5d7225f83747460cb7dbed52d5f8b8 (diff) | |
download | tangerine-wallet-browser-e61d792832381a66e7393d32e1bc2c359834f919.tar tangerine-wallet-browser-e61d792832381a66e7393d32e1bc2c359834f919.tar.gz tangerine-wallet-browser-e61d792832381a66e7393d32e1bc2c359834f919.tar.bz2 tangerine-wallet-browser-e61d792832381a66e7393d32e1bc2c359834f919.tar.lz tangerine-wallet-browser-e61d792832381a66e7393d32e1bc2c359834f919.tar.xz tangerine-wallet-browser-e61d792832381a66e7393d32e1bc2c359834f919.tar.zst tangerine-wallet-browser-e61d792832381a66e7393d32e1bc2c359834f919.zip |
Merge pull request #869 from MetaMask/dev-cleanup
Dev Cleanup Package
Diffstat (limited to 'app/scripts/lib')
-rw-r--r-- | app/scripts/lib/idStore.js | 8 | ||||
-rw-r--r-- | app/scripts/lib/inpage-provider.js | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/app/scripts/lib/idStore.js b/app/scripts/lib/idStore.js index b73652af5..e5861c0ca 100644 --- a/app/scripts/lib/idStore.js +++ b/app/scripts/lib/idStore.js @@ -44,7 +44,7 @@ function IdentityStore (opts = {}) { // public // -IdentityStore.prototype.createNewVault = function (password, entropy, cb) { +IdentityStore.prototype.createNewVault = function (password, cb) { delete this._keyStore var serializedKeystore = this.configManager.getWallet() @@ -53,7 +53,7 @@ IdentityStore.prototype.createNewVault = function (password, entropy, cb) { } this.purgeCache() - this._createVault(password, null, entropy, (err) => { + this._createVault(password, null, (err) => { if (err) return cb(err) this._autoFaucet() @@ -77,7 +77,7 @@ IdentityStore.prototype.recoverSeed = function (cb) { IdentityStore.prototype.recoverFromSeed = function (password, seed, cb) { this.purgeCache() - this._createVault(password, seed, null, (err) => { + this._createVault(password, seed, (err) => { if (err) return cb(err) this._loadIdentities() @@ -497,7 +497,7 @@ IdentityStore.prototype.tryPassword = function (password, cb) { }) } -IdentityStore.prototype._createVault = function (password, seedPhrase, entropy, cb) { +IdentityStore.prototype._createVault = function (password, seedPhrase, cb) { const opts = { password, hdPathString: this.hdPathString, diff --git a/app/scripts/lib/inpage-provider.js b/app/scripts/lib/inpage-provider.js index 034812b6a..7179ae978 100644 --- a/app/scripts/lib/inpage-provider.js +++ b/app/scripts/lib/inpage-provider.js @@ -66,20 +66,20 @@ function MetamaskInpageProvider (connectionStream) { MetamaskInpageProvider.prototype.send = function (payload) { const self = this - let selectedAddress + let selectedAccount let result = null switch (payload.method) { case 'eth_accounts': // read from localStorage - selectedAddress = self.publicConfigStore.get('selectedAddress') - result = selectedAddress ? [selectedAddress] : [] + selectedAccount = self.publicConfigStore.get('selectedAddress') + result = selectedAccount ? [selectedAccount] : [] break case 'eth_coinbase': // read from localStorage - selectedAddress = self.publicConfigStore.get('selectedAddress') - result = selectedAddress || '0x0000000000000000000000000000000000000000' + selectedAccount = self.publicConfigStore.get('selectedAddress') + result = selectedAccount || '0x0000000000000000000000000000000000000000' break // throw not-supported Error |