|
|
@ -178,7 +178,7 @@ module.exports = class MetamaskController extends EventEmitter { |
|
|
|
// sync publicConfigStore with transform
|
|
|
|
// sync publicConfigStore with transform
|
|
|
|
pipe( |
|
|
|
pipe( |
|
|
|
this.store, |
|
|
|
this.store, |
|
|
|
storeTransform(selectPublicState), |
|
|
|
storeTransform(selectPublicState.bind(this)), |
|
|
|
publicConfigStore |
|
|
|
publicConfigStore |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
@ -186,6 +186,7 @@ module.exports = class MetamaskController extends EventEmitter { |
|
|
|
const result = { selectedAddress: undefined } |
|
|
|
const result = { selectedAddress: undefined } |
|
|
|
try { |
|
|
|
try { |
|
|
|
result.selectedAddress = state.PreferencesController.selectedAddress |
|
|
|
result.selectedAddress = state.PreferencesController.selectedAddress |
|
|
|
|
|
|
|
result.networkVersion = this.getNetworkState() |
|
|
|
} catch (_) {} |
|
|
|
} catch (_) {} |
|
|
|
return result |
|
|
|
return result |
|
|
|
} |
|
|
|
} |
|
|
|