aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-08-08 02:37:20 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-08-08 02:37:20 +0800
commitfb9866b4e10c823e987d4cee9fc499673d664a8a (patch)
treee526beac1bd33e38d93650adc1ced57483b4cf3a /app/scripts/controllers
parent08f49ab35f5a78fba6921a2957a92e0a2e5b065a (diff)
downloadtangerine-wallet-browser-fb9866b4e10c823e987d4cee9fc499673d664a8a.tar
tangerine-wallet-browser-fb9866b4e10c823e987d4cee9fc499673d664a8a.tar.gz
tangerine-wallet-browser-fb9866b4e10c823e987d4cee9fc499673d664a8a.tar.bz2
tangerine-wallet-browser-fb9866b4e10c823e987d4cee9fc499673d664a8a.tar.lz
tangerine-wallet-browser-fb9866b4e10c823e987d4cee9fc499673d664a8a.tar.xz
tangerine-wallet-browser-fb9866b4e10c823e987d4cee9fc499673d664a8a.tar.zst
tangerine-wallet-browser-fb9866b4e10c823e987d4cee9fc499673d664a8a.zip
fix spelling
Diffstat (limited to 'app/scripts/controllers')
-rw-r--r--app/scripts/controllers/transactions.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/app/scripts/controllers/transactions.js b/app/scripts/controllers/transactions.js
index c1a0ef0f3..bc8e5b729 100644
--- a/app/scripts/controllers/transactions.js
+++ b/app/scripts/controllers/transactions.js
@@ -4,7 +4,7 @@ const clone = require('clone')
const ObservableStore = require('obs-store')
const ethUtil = require('ethereumjs-util')
const EthQuery = require('ethjs-query')
-const TxProviderUtil = require('../lib/tx-utils')
+const TxProviderUtils = require('../lib/tx-utils')
const PendingTransactionWatchers = require('../lib/pending-tx-watchers')
const createId = require('../lib/random-id')
const NonceTracker = require('../lib/nonce-tracker')
@@ -35,9 +35,9 @@ module.exports = class TransactionController extends EventEmitter {
},
})
this.query = new EthQuery(this.provider)
- this.txProviderUtils = new TxProviderUtil(this.provider)
+ this.txProviderUtils = new TxProviderUtils(this.provider)
- this.pendingTxWatcher = new PendingTransactionWatchers({
+ this.pendingTxWatchers = new PendingTransactionWatchers({
provider: this.provider,
nonceTracker: this.nonceTracker,
getBalance: (address) => this.ethStore.getState().accounts[address].balance,
@@ -50,16 +50,16 @@ module.exports = class TransactionController extends EventEmitter {
},
})
- this.pendingTxWatcher.on('txWarning', this.updateTx.bind(this))
- this.pendingTxWatcher.on('txFailed', this.setTxStatusFailed.bind(this))
- this.pendingTxWatcher.on('txConfirmed', this.setTxStatusConfirmed.bind(this))
+ this.pendingTxWatchers.on('txWarning', this.updateTx.bind(this))
+ this.pendingTxWatchers.on('txFailed', this.setTxStatusFailed.bind(this))
+ this.pendingTxWatchers.on('txConfirmed', this.setTxStatusConfirmed.bind(this))
- this.blockTracker.on('rawBlock', this.pendingTxWatcher.checkForTxInBlock.bind(this))
+ this.blockTracker.on('rawBlock', this.pendingTxWatchers.checkForTxInBlock.bind(this))
// 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.pendingTxWatcher.resubmitPendingTxs.bind(this)))
- this.blockTracker.on('sync', this.pendingTxWatcher.queryPendingTxs.bind(this))
+ this.blockTracker.once('latest', () => this.blockTracker.on('latest', this.pendingTxWatchers.resubmitPendingTxs.bind(this)))
+ this.blockTracker.on('sync', this.pendingTxWatchers.queryPendingTxs.bind(this))
// memstore is computed from a few different stores
this._updateMemstore()
this.store.subscribe(() => this._updateMemstore())