aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/tx-state-manager.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2018-03-28 08:01:01 +0800
committerGitHub <noreply@github.com>2018-03-28 08:01:01 +0800
commitb6b18339e2de92afd2fb5364ec5bc4c29b4d10a3 (patch)
tree406c402960ec4e6016328ddf065e2f8be794e230 /app/scripts/lib/tx-state-manager.js
parentcd3e092c14ce4541b36cd0fa15973057c7f2d561 (diff)
parentfefbf40a06aa4af7d5cf08767fa96ad75427dd20 (diff)
downloadtangerine-wallet-browser-b6b18339e2de92afd2fb5364ec5bc4c29b4d10a3.tar.gz
tangerine-wallet-browser-b6b18339e2de92afd2fb5364ec5bc4c29b4d10a3.tar.zst
tangerine-wallet-browser-b6b18339e2de92afd2fb5364ec5bc4c29b4d10a3.zip
Merge pull request #3758 from MetaMask/i#3731
I#3731
Diffstat (limited to 'app/scripts/lib/tx-state-manager.js')
-rw-r--r--app/scripts/lib/tx-state-manager.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/scripts/lib/tx-state-manager.js b/app/scripts/lib/tx-state-manager.js
index ad07c813f..ab344ae9b 100644
--- a/app/scripts/lib/tx-state-manager.js
+++ b/app/scripts/lib/tx-state-manager.js
@@ -38,11 +38,6 @@ module.exports = class TransactionStateManager extends EventEmitter {
}, opts)
}
- // Returns the number of txs for the current network.
- getTxCount () {
- return this.getTxList().length
- }
-
getTxList () {
const network = this.getNetwork()
const fullTxList = this.getFullTxList()
@@ -88,7 +83,7 @@ module.exports = class TransactionStateManager extends EventEmitter {
txMeta.history.push(snapshot)
const transactions = this.getFullTxList()
- const txCount = this.getTxCount()
+ const txCount = transactions.length
const txHistoryLimit = this.txHistoryLimit
// checks if the length of the tx history is