diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-08-09 06:30:49 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-08-09 06:30:49 +0800 |
commit | a13643bdb545af60bd4514c9026e9657ce8aa5ea (patch) | |
tree | 009fe2c6adae13d91234f5e714704d2ba765155e /app/scripts/lib | |
parent | e761fb0ef7d7d658bd6e558fe2fcbe69d8eb4999 (diff) | |
download | tangerine-wallet-browser-a13643bdb545af60bd4514c9026e9657ce8aa5ea.tar tangerine-wallet-browser-a13643bdb545af60bd4514c9026e9657ce8aa5ea.tar.gz tangerine-wallet-browser-a13643bdb545af60bd4514c9026e9657ce8aa5ea.tar.bz2 tangerine-wallet-browser-a13643bdb545af60bd4514c9026e9657ce8aa5ea.tar.lz tangerine-wallet-browser-a13643bdb545af60bd4514c9026e9657ce8aa5ea.tar.xz tangerine-wallet-browser-a13643bdb545af60bd4514c9026e9657ce8aa5ea.tar.zst tangerine-wallet-browser-a13643bdb545af60bd4514c9026e9657ce8aa5ea.zip |
fix class names
Diffstat (limited to 'app/scripts/lib')
-rw-r--r-- | app/scripts/lib/pending-tx-tracker.js (renamed from app/scripts/lib/pending-tx-watchers.js) | 3 | ||||
-rw-r--r-- | app/scripts/lib/tx-utils.js | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/app/scripts/lib/pending-tx-watchers.js b/app/scripts/lib/pending-tx-tracker.js index 60d0a09ad..6921997b2 100644 --- a/app/scripts/lib/pending-tx-watchers.js +++ b/app/scripts/lib/pending-tx-tracker.js @@ -19,7 +19,7 @@ const sufficientBalance = require('./util').sufficientBalance */ -module.exports = class PendingTransactionWatchers extends EventEmitter { +module.exports = class PendingTransactionTracker extends EventEmitter { constructor (config) { super() this.query = new EthQuery(config.provider) @@ -97,6 +97,7 @@ module.exports = class PendingTransactionWatchers extends EventEmitter { async _resubmitTx (txMeta) { const address = txMeta.txParams.from const balance = this.getBalance(address) + if (balance === undefined) return if (!('retryCount' in txMeta)) txMeta.retryCount = 0 // if the value of the transaction is greater then the balance, fail. diff --git a/app/scripts/lib/tx-utils.js b/app/scripts/lib/tx-utils.js index a2db4abd8..b64ea6712 100644 --- a/app/scripts/lib/tx-utils.js +++ b/app/scripts/lib/tx-utils.js @@ -13,7 +13,7 @@ its passed ethquery and used to do things like calculate gas of a tx. */ -module.exports = class txProvideUtils { +module.exports = class txProvideUtil { constructor (provider) { this.query = new EthQuery(provider) } |