aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2017-08-30 09:17:17 +0800
committerGitHub <noreply@github.com>2017-08-30 09:17:17 +0800
commit48021f4f940b04133821ae98b190271b37bfb659 (patch)
tree055326680aab59989405f64c301447f3a3c19555
parentec286a2b338decbde6a9dec3489420fd2d31a3bc (diff)
parent4b058bc7eb0a82a71e7c9c2b691bd3c94071270f (diff)
downloadtangerine-wallet-browser-48021f4f940b04133821ae98b190271b37bfb659.tar
tangerine-wallet-browser-48021f4f940b04133821ae98b190271b37bfb659.tar.gz
tangerine-wallet-browser-48021f4f940b04133821ae98b190271b37bfb659.tar.bz2
tangerine-wallet-browser-48021f4f940b04133821ae98b190271b37bfb659.tar.lz
tangerine-wallet-browser-48021f4f940b04133821ae98b190271b37bfb659.tar.xz
tangerine-wallet-browser-48021f4f940b04133821ae98b190271b37bfb659.tar.zst
tangerine-wallet-browser-48021f4f940b04133821ae98b190271b37bfb659.zip
Merge pull request #1988 from MetaMask/i1986-AddVersionToStateLogs
Add version to state logs
-rw-r--r--CHANGELOG.md1
-rw-r--r--ui/app/reducers.js5
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3d5695c40..43b52e5fa 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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
diff --git a/ui/app/reducers.js b/ui/app/reducers.js
index 36045772f..6a2f44534 100644
--- a/ui/app/reducers.js
+++ b/ui/app/reducers.js
@@ -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
}