Add version to state logs

Fixes #1986
feature/default_network_editable
Dan Finlay 7 years ago
parent 71de68fc13
commit 54ce267a9f
  1. 1
      CHANGELOG.md
  2. 5
      ui/app/reducers.js

@ -4,6 +4,7 @@
- Make eth_sign deprecation warning less noisy
- Fix bug with network version serialization over synchronous RPC
- Add MetaMask version to state logs.
## 3.9.11 2017-8-24

@ -42,7 +42,10 @@ function rootReducer (state, action) {
}
window.logState = function () {
var stateString = JSON.stringify(window.METAMASK_CACHED_LOG_STATE, removeSeedWords, 2)
let state = window.METAMASK_CACHED_LOG_STATE
const version = global.platform.getVersion()
state.version = version
let stateString = JSON.stringify(state, removeSeedWords, 2)
return stateString
}

Loading…
Cancel
Save