mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Merge branch 'dev' into disclaimer-notify
This commit is contained in:
commit
f9601ac2dd
@ -1,6 +1,7 @@
|
||||
# Changelog
|
||||
|
||||
## Current Master
|
||||
- net_version has been made synchronous.
|
||||
|
||||
## 3.2.1 2017-2-8
|
||||
|
||||
|
@ -84,6 +84,11 @@ MetamaskInpageProvider.prototype.send = function (payload) {
|
||||
result = true
|
||||
break
|
||||
|
||||
case 'net_version':
|
||||
let networkVersion = self.publicConfigStore.getState().networkVersion
|
||||
result = networkVersion
|
||||
break
|
||||
|
||||
// throw not-supported Error
|
||||
default:
|
||||
var link = 'https://github.com/MetaMask/faq/blob/master/DEVELOPERS.md#dizzy-all-async---think-of-metamask-as-a-light-client'
|
||||
|
@ -176,7 +176,7 @@ module.exports = class MetamaskController extends EventEmitter {
|
||||
// sync publicConfigStore with transform
|
||||
pipe(
|
||||
this.store,
|
||||
storeTransform(selectPublicState),
|
||||
storeTransform(selectPublicState.bind(this)),
|
||||
publicConfigStore
|
||||
)
|
||||
|
||||
@ -184,6 +184,7 @@ module.exports = class MetamaskController extends EventEmitter {
|
||||
const result = { selectedAddress: undefined }
|
||||
try {
|
||||
result.selectedAddress = state.PreferencesController.selectedAddress
|
||||
result.networkVersion = this.getNetworkState()
|
||||
} catch (_) {}
|
||||
return result
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user