diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-09-09 05:24:40 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-09-09 05:24:40 +0800 |
commit | 9b9df417246dbf332f0a7d8afadb664544ceb484 (patch) | |
tree | 4459d9272defce22c54e301d518bc1d4efab7f2f /app/scripts/lib | |
parent | 50075c6df5af4441db78b47f3bc2036a65228224 (diff) | |
download | tangerine-wallet-browser-9b9df417246dbf332f0a7d8afadb664544ceb484.tar tangerine-wallet-browser-9b9df417246dbf332f0a7d8afadb664544ceb484.tar.gz tangerine-wallet-browser-9b9df417246dbf332f0a7d8afadb664544ceb484.tar.bz2 tangerine-wallet-browser-9b9df417246dbf332f0a7d8afadb664544ceb484.tar.lz tangerine-wallet-browser-9b9df417246dbf332f0a7d8afadb664544ceb484.tar.xz tangerine-wallet-browser-9b9df417246dbf332f0a7d8afadb664544ceb484.tar.zst tangerine-wallet-browser-9b9df417246dbf332f0a7d8afadb664544ceb484.zip |
more tests and craete a getPendingTransactions function
Diffstat (limited to 'app/scripts/lib')
-rw-r--r-- | app/scripts/lib/tx-state-manager.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/scripts/lib/tx-state-manager.js b/app/scripts/lib/tx-state-manager.js index eb2a187db..05fbba612 100644 --- a/app/scripts/lib/tx-state-manager.js +++ b/app/scripts/lib/tx-state-manager.js @@ -33,6 +33,12 @@ module.exports = class TransactionStateManger extends ObservableStore { }, {}) } + getPendingTransactions (address) { + const opts = { status: 'submitted' } + if (address) opts.from = address + return this.txStateManager.getFilteredTxList(opts) + } + addTx (txMeta) { this.once(`${txMeta.id}:signed`, function (txId) { this.removeAllListeners(`${txMeta.id}:rejected`) |