aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers/transactions.js
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-09-27 07:55:11 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-09-27 07:55:11 +0800
commit80c98b16531db4c6a13a52df800967af2bc4a676 (patch)
treed2286824d2617cd2dd3d799c4f6169b3f1a27641 /app/scripts/controllers/transactions.js
parent9fd545811226c16e11e4f2dc100a348e07f094bf (diff)
downloadtangerine-wallet-browser-80c98b16531db4c6a13a52df800967af2bc4a676.tar
tangerine-wallet-browser-80c98b16531db4c6a13a52df800967af2bc4a676.tar.gz
tangerine-wallet-browser-80c98b16531db4c6a13a52df800967af2bc4a676.tar.bz2
tangerine-wallet-browser-80c98b16531db4c6a13a52df800967af2bc4a676.tar.lz
tangerine-wallet-browser-80c98b16531db4c6a13a52df800967af2bc4a676.tar.xz
tangerine-wallet-browser-80c98b16531db4c6a13a52df800967af2bc4a676.tar.zst
tangerine-wallet-browser-80c98b16531db4c6a13a52df800967af2bc4a676.zip
transactions: make evnt names pretty and eaiser to read
Diffstat (limited to 'app/scripts/controllers/transactions.js')
-rw-r--r--app/scripts/controllers/transactions.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/scripts/controllers/transactions.js b/app/scripts/controllers/transactions.js
index 1b647a4ed..ec1524968 100644
--- a/app/scripts/controllers/transactions.js
+++ b/app/scripts/controllers/transactions.js
@@ -72,9 +72,9 @@ module.exports = class TransactionController extends EventEmitter {
this.txStateManager.store.subscribe(() => this.emit('update:badge'))
- this.pendingTxTracker.on('txWarning', this.txStateManager.updateTx.bind(this.txStateManager))
- this.pendingTxTracker.on('txFailed', this.txStateManager.setTxStatusFailed.bind(this.txStateManager))
- this.pendingTxTracker.on('txConfirmed', this.txStateManager.setTxStatusConfirmed.bind(this.txStateManager))
+ this.pendingTxTracker.on('tx:warning', this.txStateManager.updateTx.bind(this.txStateManager))
+ this.pendingTxTracker.on('tx:failed', this.txStateManager.setTxStatusFailed.bind(this.txStateManager))
+ this.pendingTxTracker.on('tx:confirmed', this.txStateManager.setTxStatusConfirmed.bind(this.txStateManager))
this.blockTracker.on('rawBlock', this.pendingTxTracker.checkForTxInBlock.bind(this.pendingTxTracker))
// this is a little messy but until ethstore has been either