inpage provider - sync rpc - default to null values

This commit is contained in:
kumavis 2017-08-23 16:13:33 -07:00
parent ebe8ceeba4
commit 53e410167b
1 changed files with 3 additions and 3 deletions

View File

@ -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