diff options
author | Dan J Miller <danjm.com@gmail.com> | 2018-01-24 02:38:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-24 02:38:39 +0800 |
commit | 62ce65c99ed3e82b034327b2ab20e301675632f5 (patch) | |
tree | 9869d35d41b5b1e9e33fa9ff968afb9d1fa1f0ff /app | |
parent | 338ebe5f402ff50dc8d1a91b7b69cd8e262cc789 (diff) | |
parent | 97ca86733cb49750a9909b57ac1f31bc0f49abc5 (diff) | |
download | tangerine-wallet-browser-62ce65c99ed3e82b034327b2ab20e301675632f5.tar tangerine-wallet-browser-62ce65c99ed3e82b034327b2ab20e301675632f5.tar.gz tangerine-wallet-browser-62ce65c99ed3e82b034327b2ab20e301675632f5.tar.bz2 tangerine-wallet-browser-62ce65c99ed3e82b034327b2ab20e301675632f5.tar.lz tangerine-wallet-browser-62ce65c99ed3e82b034327b2ab20e301675632f5.tar.xz tangerine-wallet-browser-62ce65c99ed3e82b034327b2ab20e301675632f5.tar.zst tangerine-wallet-browser-62ce65c99ed3e82b034327b2ab20e301675632f5.zip |
Merge pull request #3069 from tmashuang/uat
Revert integration tests to uat to oldUI
Diffstat (limited to 'app')
-rw-r--r-- | app/manifest.json | 2 | ||||
-rw-r--r-- | app/scripts/background.js | 12 | ||||
-rw-r--r-- | app/scripts/setupRaven.js | 2 |
3 files changed, 14 insertions, 2 deletions
diff --git a/app/manifest.json b/app/manifest.json index d906382e9..d795a225a 100644 --- a/app/manifest.json +++ b/app/manifest.json @@ -1,7 +1,7 @@ { "name": "MetaMask", "short_name": "Metamask", - "version": "4.0.10", + "version": "3.13.7", "manifest_version": 2, "author": "https://metamask.io", "description": "Ethereum Browser Extension", diff --git a/app/scripts/background.js b/app/scripts/background.js index 8c1252d3e..0471cee3b 100644 --- a/app/scripts/background.js +++ b/app/scripts/background.js @@ -27,7 +27,7 @@ global.METAMASK_NOTIFIER = notificationManager // setup sentry error reporting const release = platform.getVersion() -setupRaven({ release }) +const raven = setupRaven({ release }) let popupIsOpen = false @@ -77,6 +77,16 @@ function setupController (initState) { }) global.metamaskController = controller + // report failed transactions to Sentry + controller.txController.on(`tx:status-update`, (txId, status) => { + if (status !== 'failed') return + const txMeta = controller.txController.txStateManager.getTx(txId) + raven.captureMessage('Transaction Failed', { + // "extra" key is required by Sentry + extra: txMeta, + }) + }) + // setup state persistence pump( asStream(controller.store), diff --git a/app/scripts/setupRaven.js b/app/scripts/setupRaven.js index 4888c85fe..7beffeff9 100644 --- a/app/scripts/setupRaven.js +++ b/app/scripts/setupRaven.js @@ -21,4 +21,6 @@ function setupRaven(opts) { Raven.config(ravenTarget, { release, }).install() + + return Raven } |