aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorThomas Huang <tmashuang@users.noreply.github.com>2018-07-13 02:48:05 +0800
committerGitHub <noreply@github.com>2018-07-13 02:48:05 +0800
commit5a45df72c6aaed3f8f1903cc4e47231488e568b3 (patch)
tree23eb1e0b4429170672b9e40c874b363300ddfdb2 /app
parent47d596c090c434e564af157967d303753f8e65e3 (diff)
parent5188b727d43e91087449818dee69942c382b6d89 (diff)
downloadtangerine-wallet-browser-5a45df72c6aaed3f8f1903cc4e47231488e568b3.tar
tangerine-wallet-browser-5a45df72c6aaed3f8f1903cc4e47231488e568b3.tar.gz
tangerine-wallet-browser-5a45df72c6aaed3f8f1903cc4e47231488e568b3.tar.bz2
tangerine-wallet-browser-5a45df72c6aaed3f8f1903cc4e47231488e568b3.tar.lz
tangerine-wallet-browser-5a45df72c6aaed3f8f1903cc4e47231488e568b3.tar.xz
tangerine-wallet-browser-5a45df72c6aaed3f8f1903cc4e47231488e568b3.tar.zst
tangerine-wallet-browser-5a45df72c6aaed3f8f1903cc4e47231488e568b3.zip
Merge pull request #4669 from MetaMask/removeNonceTrackerFunction
Remove unsued nonce tracker function
Diffstat (limited to 'app')
-rw-r--r--app/scripts/controllers/transactions/nonce-tracker.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/app/scripts/controllers/transactions/nonce-tracker.js b/app/scripts/controllers/transactions/nonce-tracker.js
index 35ca08d6c..06f336eaa 100644
--- a/app/scripts/controllers/transactions/nonce-tracker.js
+++ b/app/scripts/controllers/transactions/nonce-tracker.js
@@ -129,19 +129,6 @@ class NonceTracker {
return Number.isInteger(highest) ? highest + 1 : 0
}
- _reduceTxListToUniqueNonces (txList) {
- const reducedTxList = txList.reduce((reducedList, txMeta, index) => {
- if (!index) return [txMeta]
- const nonceMatches = txList.filter((txData) => {
- return txMeta.txParams.nonce === txData.txParams.nonce
- })
- if (nonceMatches.length > 1) return reducedList
- reducedList.push(txMeta)
- return reducedList
- }, [])
- return reducedTxList
- }
-
_getHighestNonce (txList) {
const nonces = txList.map((txMeta) => {
const nonce = txMeta.txParams.nonce