Merge remote-tracking branch 'origin/master' into Version-3.13.7

feature/default_network_editable
Dan Finlay 7 years ago
commit 022b125495
  1. 1
      CHANGELOG.md
  2. 12
      app/scripts/background.js
  3. 2
      app/scripts/setupRaven.js

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

@ -27,7 +27,7 @@ global.METAMASK_NOTIFIER = notificationManager
// setup sentry error reporting // setup sentry error reporting
const release = platform.getVersion() const release = platform.getVersion()
setupRaven({ release }) const raven = setupRaven({ release })
let popupIsOpen = false let popupIsOpen = false
@ -77,6 +77,16 @@ function setupController (initState) {
}) })
global.metamaskController = controller 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 // setup state persistence
pump( pump(
asStream(controller.store), asStream(controller.store),

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

Loading…
Cancel
Save