diff options
author | frankiebee <frankie.diamond@gmail.com> | 2018-04-14 04:18:45 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2018-04-14 04:18:45 +0800 |
commit | 943eea043cc40ea42ffe757a7115ccbc5585b37b (patch) | |
tree | f3023b8e6dc29bd3349e66f0a57744551e3444b5 /app/scripts/controllers/transactions/index.js | |
parent | 88f4212363601b2bb3778f4090235a0a0740b4c9 (diff) | |
download | tangerine-wallet-browser-943eea043cc40ea42ffe757a7115ccbc5585b37b.tar tangerine-wallet-browser-943eea043cc40ea42ffe757a7115ccbc5585b37b.tar.gz tangerine-wallet-browser-943eea043cc40ea42ffe757a7115ccbc5585b37b.tar.bz2 tangerine-wallet-browser-943eea043cc40ea42ffe757a7115ccbc5585b37b.tar.lz tangerine-wallet-browser-943eea043cc40ea42ffe757a7115ccbc5585b37b.tar.xz tangerine-wallet-browser-943eea043cc40ea42ffe757a7115ccbc5585b37b.tar.zst tangerine-wallet-browser-943eea043cc40ea42ffe757a7115ccbc5585b37b.zip |
fix up - more docs
Diffstat (limited to 'app/scripts/controllers/transactions/index.js')
-rw-r--r-- | app/scripts/controllers/transactions/index.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/app/scripts/controllers/transactions/index.js b/app/scripts/controllers/transactions/index.js index ca83941fc..c81251cd2 100644 --- a/app/scripts/controllers/transactions/index.js +++ b/app/scripts/controllers/transactions/index.js @@ -9,8 +9,6 @@ const PendingTransactionTracker = require('./pending-tx-tracker') const NonceTracker = require('./nonce-tracker') const txUtils = require('./lib/util') -module.exports = TransactionController - /** Transaction Controller is an aggregate of sub-controllers and trackers composing them in a way to be exposed to the metamask controller @@ -356,6 +354,11 @@ add a new unapproved transaction to the pipeline }) } + /** + is called in constructor applies the listeners for pendingTxTracker txStateManager + and blockTracker + <br> + */ _setupListners () { this.txStateManager.on('tx:status-update', this.emit.bind(this, 'tx:status-update')) this.pendingTxTracker.on('tx:warning', (txMeta) => { @@ -407,4 +410,6 @@ add a new unapproved transaction to the pipeline }) this.memStore.updateState({ unapprovedTxs, selectedAddressTxList }) } -}
\ No newline at end of file +} + +module.exports = TransactionController
\ No newline at end of file |