aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-01-31 07:25:12 +0800
committerkumavis <aaron@kumavis.me>2017-01-31 07:25:12 +0800
commit2fa60cfcbfdeb43599007f0dd26fd44a4beec8f1 (patch)
treed42ef1e2402cdaebcad3f72f6887b5e3999b3c95 /app/scripts/lib
parentf9b31fe2c3a43339a4519761e4c8b2f3813e85e0 (diff)
downloadtangerine-wallet-browser-2fa60cfcbfdeb43599007f0dd26fd44a4beec8f1.tar.gz
tangerine-wallet-browser-2fa60cfcbfdeb43599007f0dd26fd44a4beec8f1.tar.zst
tangerine-wallet-browser-2fa60cfcbfdeb43599007f0dd26fd44a4beec8f1.zip
continue rename selectedAccount to selectedAddress
Diffstat (limited to 'app/scripts/lib')
-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 066916b4d..faecac137 100644
--- a/app/scripts/lib/inpage-provider.js
+++ b/app/scripts/lib/inpage-provider.js
@@ -63,20 +63,20 @@ function MetamaskInpageProvider (connectionStream) {
MetamaskInpageProvider.prototype.send = function (payload) {
const self = this
- let selectedAccount
+ let selectedAddress
let result = null
switch (payload.method) {
case 'eth_accounts':
// read from localStorage
- selectedAccount = self.publicConfigStore.getState().selectedAccount
- result = selectedAccount ? [selectedAccount] : []
+ selectedAddress = self.publicConfigStore.getState().selectedAddress
+ result = selectedAddress ? [selectedAddress] : []
break
case 'eth_coinbase':
// read from localStorage
- selectedAccount = self.publicConfigStore.getState().selectedAccount
- result = selectedAccount || '0x0000000000000000000000000000000000000000'
+ selectedAddress = self.publicConfigStore.getState().selectedAddress
+ result = selectedAddress
break
case 'eth_uninstallFilter':