aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers/transactions/tx-state-manager.js
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2018-04-11 05:53:40 +0800
committerfrankiebee <frankie.diamond@gmail.com>2018-04-11 05:54:30 +0800
commit5494aa4f9c34353158dc0c6d07d48abec247ccd8 (patch)
tree1535f92a2ea0c7f66a9744f9643130d1a8919a51 /app/scripts/controllers/transactions/tx-state-manager.js
parent2d7c3c2b00a698b19ac015624154c3c1cd2619b2 (diff)
downloadtangerine-wallet-browser-5494aa4f9c34353158dc0c6d07d48abec247ccd8.tar
tangerine-wallet-browser-5494aa4f9c34353158dc0c6d07d48abec247ccd8.tar.gz
tangerine-wallet-browser-5494aa4f9c34353158dc0c6d07d48abec247ccd8.tar.bz2
tangerine-wallet-browser-5494aa4f9c34353158dc0c6d07d48abec247ccd8.tar.lz
tangerine-wallet-browser-5494aa4f9c34353158dc0c6d07d48abec247ccd8.tar.xz
tangerine-wallet-browser-5494aa4f9c34353158dc0c6d07d48abec247ccd8.tar.zst
tangerine-wallet-browser-5494aa4f9c34353158dc0c6d07d48abec247ccd8.zip
transactions - lint fixes
Diffstat (limited to 'app/scripts/controllers/transactions/tx-state-manager.js')
-rw-r--r--app/scripts/controllers/transactions/tx-state-manager.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/scripts/controllers/transactions/tx-state-manager.js b/app/scripts/controllers/transactions/tx-state-manager.js
index cb24b8c99..f898cc44a 100644
--- a/app/scripts/controllers/transactions/tx-state-manager.js
+++ b/app/scripts/controllers/transactions/tx-state-manager.js
@@ -92,7 +92,7 @@ module.exports = class TransactionStateManager extends EventEmitter {
// or rejected tx's.
// not tx's that are pending or unapproved
if (txCount > txHistoryLimit - 1) {
- let index = transactions.findIndex((metaTx) => {
+ const index = transactions.findIndex((metaTx) => {
return this.getFinalStates().includes(metaTx.status)
})
if (index !== -1) {
@@ -145,7 +145,7 @@ module.exports = class TransactionStateManager extends EventEmitter {
}
// validates txParams members by type
- validateTxParams(txParams) {
+ validateTxParams (txParams) {
Object.keys(txParams).forEach((key) => {
const value = txParams[key]
// validate types
@@ -263,10 +263,10 @@ module.exports = class TransactionStateManager extends EventEmitter {
// returns an array of states that can be considered final
getFinalStates () {
return [
- 'rejected', // the user has responded no!
- 'confirmed', // the tx has been included in a block.
- 'failed', // the tx failed for some reason, included on tx data.
- 'dropped', // the tx nonce was already used
+ 'rejected', // the user has responded no!
+ 'confirmed', // the tx has been included in a block.
+ 'failed', // the tx failed for some reason, included on tx data.
+ 'dropped', // the tx nonce was already used
]
}