aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-08-08 04:57:17 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-08-08 04:58:38 +0800
commit3a2190ec3cac0211d37dab6434d29f7bb484d4c4 (patch)
tree5163a9f1a8d089725f18680a1129917d6c6262fe
parent28fbdca83006fa32c9411081f2152560005167ad (diff)
downloadtangerine-wallet-browser-3a2190ec3cac0211d37dab6434d29f7bb484d4c4.tar.gz
tangerine-wallet-browser-3a2190ec3cac0211d37dab6434d29f7bb484d4c4.tar.zst
tangerine-wallet-browser-3a2190ec3cac0211d37dab6434d29f7bb484d4c4.zip
fix the bind on pending tx watchers
-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 efc8d7117..cf987db91 100644
--- a/app/scripts/controllers/transactions.js
+++ b/app/scripts/controllers/transactions.js
@@ -54,12 +54,12 @@ module.exports = class TransactionController extends EventEmitter {
this.pendingTxWatchers.on('txFailed', this.setTxStatusFailed.bind(this))
this.pendingTxWatchers.on('txConfirmed', this.setTxStatusConfirmed.bind(this))
- this.blockTracker.on('rawBlock', this.pendingTxWatchers.checkForTxInBlock.bind(this))
+ this.blockTracker.on('rawBlock', this.pendingTxWatchers.checkForTxInBlock.bind(this.pendingTxWatchers))
// this is a little messy but until ethstore has been either
// removed or redone this is to guard against the race condition
// where ethStore hasent been populated by the results yet
- this.blockTracker.once('latest', () => this.blockTracker.on('latest', this.pendingTxWatchers.resubmitPendingTxs.bind(this)))
- this.blockTracker.on('sync', this.pendingTxWatchers.queryPendingTxs.bind(this))
+ this.blockTracker.once('latest', () => this.blockTracker.on('latest', this.pendingTxWatchers.resubmitPendingTxs.bind(this.pendingTxWatchers)))
+ this.blockTracker.on('sync', this.pendingTxWatchers.queryPendingTxs.bind(this.pendingTxWatchers))
// memstore is computed from a few different stores
this._updateMemstore()
this.store.subscribe(() => this._updateMemstore())