aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-08-24 07:13:33 +0800
committerkumavis <aaron@kumavis.me>2017-08-24 07:13:33 +0800
commit53e410167b25b8914fa927efc822515d6b22e0ee (patch)
treefbf482fdaeac41c1c4f89dd5a175b750ab868d3e /app/scripts
parentebe8ceeba48463b430c32c325230eb641124a3eb (diff)
downloadtangerine-wallet-browser-53e410167b25b8914fa927efc822515d6b22e0ee.tar
tangerine-wallet-browser-53e410167b25b8914fa927efc822515d6b22e0ee.tar.gz
tangerine-wallet-browser-53e410167b25b8914fa927efc822515d6b22e0ee.tar.bz2
tangerine-wallet-browser-53e410167b25b8914fa927efc822515d6b22e0ee.tar.lz
tangerine-wallet-browser-53e410167b25b8914fa927efc822515d6b22e0ee.tar.xz
tangerine-wallet-browser-53e410167b25b8914fa927efc822515d6b22e0ee.tar.zst
tangerine-wallet-browser-53e410167b25b8914fa927efc822515d6b22e0ee.zip
inpage provider - sync rpc - default to null values
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/lib/inpage-provider.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/scripts/lib/inpage-provider.js b/app/scripts/lib/inpage-provider.js
index fd032a673..8b36b4433 100644
--- a/app/scripts/lib/inpage-provider.js
+++ b/app/scripts/lib/inpage-provider.js
@@ -27,7 +27,7 @@ function MetamaskInpageProvider (connectionStream) {
)
// ignore phishing warning message (handled elsewhere)
- multiStream.ignoreStream('phishing')
+ multiStream.ignoreStream('phishing')
// connect to async provider
const asyncProvider = self.asyncProvider = new StreamProvider()
@@ -80,7 +80,7 @@ MetamaskInpageProvider.prototype.send = function (payload) {
case 'eth_coinbase':
// read from localStorage
selectedAddress = self.publicConfigStore.getState().selectedAddress
- result = selectedAddress
+ result = selectedAddress || null
break
case 'eth_uninstallFilter':
@@ -90,7 +90,7 @@ MetamaskInpageProvider.prototype.send = function (payload) {
case 'net_version':
const networkVersion = self.publicConfigStore.getState().networkVersion
- result = networkVersion
+ result = networkVersion || null
break
// throw not-supported Error