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

Merge branch 'master' into Version-3.13.7

This commit is contained in:
kumavis 2018-01-22 16:05:34 -08:00 committed by GitHub
commit f26933493c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 2 deletions

View File

@ -5,7 +5,8 @@
## 3.13.7 2018-1-22
- Add ability to bypass gas estimation loading indicator.
- Re-add changes from 3.13.4
- Forward failed transactions to Sentry error reporting service
- Re-add changes from 3.13.5
## 3.13.6 2017-1-18

View File

@ -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),

View File

@ -21,4 +21,6 @@ function setupRaven(opts) {
Raven.config(ravenTarget, {
release,
}).install()
return Raven
}