1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00

Add version to state logs

Fixes #1986
This commit is contained in:
Dan Finlay 2017-08-29 11:42:44 -07:00
parent 71de68fc13
commit 54ce267a9f
2 changed files with 5 additions and 1 deletions

View File

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

View File

@ -42,7 +42,10 @@ function rootReducer (state, action) {
} }
window.logState = function () { 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 return stateString
} }