aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers
diff options
context:
space:
mode:
authorbrunobar79 <brunobar79@gmail.com>2018-07-14 08:53:22 +0800
committerbrunobar79 <brunobar79@gmail.com>2018-07-14 08:53:22 +0800
commitd21d408d6429e645fda8b9dfcddbe22b7a44f8ca (patch)
tree53c268ebf360d7740e0be9cd04bee3e811792a96 /app/scripts/controllers
parent30258328587a8942c21fce609b7949d093cd594f (diff)
parent2f4698c130331db20a27576cb1c521c8ca5106e3 (diff)
downloadtangerine-wallet-browser-d21d408d6429e645fda8b9dfcddbe22b7a44f8ca.tar
tangerine-wallet-browser-d21d408d6429e645fda8b9dfcddbe22b7a44f8ca.tar.gz
tangerine-wallet-browser-d21d408d6429e645fda8b9dfcddbe22b7a44f8ca.tar.bz2
tangerine-wallet-browser-d21d408d6429e645fda8b9dfcddbe22b7a44f8ca.tar.lz
tangerine-wallet-browser-d21d408d6429e645fda8b9dfcddbe22b7a44f8ca.tar.xz
tangerine-wallet-browser-d21d408d6429e645fda8b9dfcddbe22b7a44f8ca.tar.zst
tangerine-wallet-browser-d21d408d6429e645fda8b9dfcddbe22b7a44f8ca.zip
Merge branch 'develop' of github.com:MetaMask/metamask-extension into initial-trezor-support
Diffstat (limited to 'app/scripts/controllers')
-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