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

@ -80,7 +80,7 @@ MetamaskInpageProvider.prototype.send = function (payload) {
case 'eth_coinbase': case 'eth_coinbase':
// read from localStorage // read from localStorage
selectedAddress = self.publicConfigStore.getState().selectedAddress selectedAddress = self.publicConfigStore.getState().selectedAddress
result = selectedAddress result = selectedAddress || null
break break
case 'eth_uninstallFilter': case 'eth_uninstallFilter':
@ -90,7 +90,7 @@ MetamaskInpageProvider.prototype.send = function (payload) {
case 'net_version': case 'net_version':
const networkVersion = self.publicConfigStore.getState().networkVersion const networkVersion = self.publicConfigStore.getState().networkVersion
result = networkVersion result = networkVersion || null
break break
// throw not-supported Error // throw not-supported Error