aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/inpage-provider.js
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-11-22 08:21:16 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-11-22 08:21:16 +0800
commitf5b0795ac5582dd53de728479cf47c43eabfe67c (patch)
tree9b03db0e3a5d3dfd913abcad6cfbadaff71531d6 /app/scripts/lib/inpage-provider.js
parent9123e70434fcd35dcb79a587e6d5c00734cb99e4 (diff)
downloadtangerine-wallet-browser-f5b0795ac5582dd53de728479cf47c43eabfe67c.tar
tangerine-wallet-browser-f5b0795ac5582dd53de728479cf47c43eabfe67c.tar.gz
tangerine-wallet-browser-f5b0795ac5582dd53de728479cf47c43eabfe67c.tar.bz2
tangerine-wallet-browser-f5b0795ac5582dd53de728479cf47c43eabfe67c.tar.lz
tangerine-wallet-browser-f5b0795ac5582dd53de728479cf47c43eabfe67c.tar.xz
tangerine-wallet-browser-f5b0795ac5582dd53de728479cf47c43eabfe67c.tar.zst
tangerine-wallet-browser-f5b0795ac5582dd53de728479cf47c43eabfe67c.zip
change all instances of selectedAddress to selectedAccount.
Diffstat (limited to 'app/scripts/lib/inpage-provider.js')
-rw-r--r--app/scripts/lib/inpage-provider.js10
1 files changed, 5 insertions, 5 deletions
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