aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-01-31 07:38:32 +0800
committerkumavis <aaron@kumavis.me>2017-01-31 07:38:32 +0800
commit7ccaa263d265edc2f987dc66af0caf5fedb42296 (patch)
treec9d24506dd8977d8496bc2ca61f4294417586888 /app
parent2fa60cfcbfdeb43599007f0dd26fd44a4beec8f1 (diff)
downloadtangerine-wallet-browser-7ccaa263d265edc2f987dc66af0caf5fedb42296.tar
tangerine-wallet-browser-7ccaa263d265edc2f987dc66af0caf5fedb42296.tar.gz
tangerine-wallet-browser-7ccaa263d265edc2f987dc66af0caf5fedb42296.tar.bz2
tangerine-wallet-browser-7ccaa263d265edc2f987dc66af0caf5fedb42296.tar.lz
tangerine-wallet-browser-7ccaa263d265edc2f987dc66af0caf5fedb42296.tar.xz
tangerine-wallet-browser-7ccaa263d265edc2f987dc66af0caf5fedb42296.tar.zst
tangerine-wallet-browser-7ccaa263d265edc2f987dc66af0caf5fedb42296.zip
inpage - set web3.eth.defaultAccount correctly
Diffstat (limited to 'app')
-rw-r--r--app/scripts/inpage.js2
-rw-r--r--app/scripts/metamask-controller.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/inpage.js b/app/scripts/inpage.js
index 599604a82..419f78cd6 100644
--- a/app/scripts/inpage.js
+++ b/app/scripts/inpage.js
@@ -52,7 +52,7 @@ reloadStream.once('data', triggerReload)
// set web3 defaultAccount
inpageProvider.publicConfigStore.subscribe(function (state) {
- web3.eth.defaultAccount = state.PreferencesController.selectedAddress
+ web3.eth.defaultAccount = state.selectedAddress
})
//
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index fc7df5137..2c379f8d9 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -156,7 +156,7 @@ module.exports = class MetamaskController extends EventEmitter {
function selectPublicState(state) {
const result = { selectedAddress: undefined }
try {
- result.selectedAddress = state.KeyringController.selectedAddress
+ result.selectedAddress = state.PreferencesController.selectedAddress
} catch (_) {}
return result
}