diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-08-30 02:42:44 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-08-30 02:42:44 +0800 |
commit | 54ce267a9f804b1733d2627ac7568d5eb6fe6518 (patch) | |
tree | 85f227981f66875ed53904c11e031d0fa2c29f5c | |
parent | 71de68fc13d83934e8bc81ba43574a946bc32159 (diff) | |
download | tangerine-wallet-browser-54ce267a9f804b1733d2627ac7568d5eb6fe6518.tar tangerine-wallet-browser-54ce267a9f804b1733d2627ac7568d5eb6fe6518.tar.gz tangerine-wallet-browser-54ce267a9f804b1733d2627ac7568d5eb6fe6518.tar.bz2 tangerine-wallet-browser-54ce267a9f804b1733d2627ac7568d5eb6fe6518.tar.lz tangerine-wallet-browser-54ce267a9f804b1733d2627ac7568d5eb6fe6518.tar.xz tangerine-wallet-browser-54ce267a9f804b1733d2627ac7568d5eb6fe6518.tar.zst tangerine-wallet-browser-54ce267a9f804b1733d2627ac7568d5eb6fe6518.zip |
Add version to state logs
Fixes #1986
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | ui/app/reducers.js | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index a0fe916dd..dc5e7629a 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. ## 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 } |