1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Merge pull request #1988 from MetaMask/i1986-AddVersionToStateLogs

Add version to state logs
This commit is contained in:
Kevin Serrano 2017-08-29 18:17:17 -07:00 committed by GitHub
commit 48021f4f94
2 changed files with 5 additions and 1 deletions

View File

@ -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.
- Add the total amount of tokens when multiple tokens are added under the token list
## 3.9.11 2017-8-24

View File

@ -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
}