log emitter errors

feature/default_network_editable
frankiebee 7 years ago
parent 7eb735651b
commit 706647785c
  1. 4
      app/scripts/controllers/transactions/tx-state-manager.js

@ -399,6 +399,7 @@ class TransactionStateManager extends EventEmitter {
const txMeta = this.getTx(txId)
txMeta.status = status
setTimeout(() => {
try {
this.updateTx(txMeta, `txStateManager: setting status to ${status}`)
this.emit(`${txMeta.id}:${status}`, txId)
this.emit(`tx:status-update`, txId, status)
@ -406,6 +407,9 @@ class TransactionStateManager extends EventEmitter {
this.emit(`${txMeta.id}:finished`, txMeta)
}
this.emit('update:badge')
} catch (error) {
log.error(error)
}
})
}

Loading…
Cancel
Save