aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2018-03-29 05:09:45 +0800
committerDan Finlay <dan@danfinlay.com>2018-03-29 05:18:03 +0800
commitf50a7a8fe891a803e50cc256200e8ce8c903ea2e (patch)
tree9f992840304a683484b9f97c017b1fa422302e97 /app
parent47039cc3a94ece44b109d3002b03508f97b82a36 (diff)
downloadtangerine-wallet-browser-f50a7a8fe891a803e50cc256200e8ce8c903ea2e.tar
tangerine-wallet-browser-f50a7a8fe891a803e50cc256200e8ce8c903ea2e.tar.gz
tangerine-wallet-browser-f50a7a8fe891a803e50cc256200e8ce8c903ea2e.tar.bz2
tangerine-wallet-browser-f50a7a8fe891a803e50cc256200e8ce8c903ea2e.tar.lz
tangerine-wallet-browser-f50a7a8fe891a803e50cc256200e8ce8c903ea2e.tar.xz
tangerine-wallet-browser-f50a7a8fe891a803e50cc256200e8ce8c903ea2e.tar.zst
tangerine-wallet-browser-f50a7a8fe891a803e50cc256200e8ce8c903ea2e.zip
Rename variable to be more understandable
Diffstat (limited to 'app')
-rw-r--r--app/scripts/lib/nonce-tracker.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/scripts/lib/nonce-tracker.js b/app/scripts/lib/nonce-tracker.js
index ed9dd3f11..5b1cd7f43 100644
--- a/app/scripts/lib/nonce-tracker.js
+++ b/app/scripts/lib/nonce-tracker.js
@@ -31,14 +31,13 @@ class NonceTracker {
const networkNonceResult = await this._getNetworkNextNonce(address)
const highestLocallyConfirmed = this._getHighestLocallyConfirmed(address)
const nextNetworkNonce = networkNonceResult.nonce
- const highestLocalNonce = highestLocallyConfirmed
- const highestSuggested = Math.max(nextNetworkNonce, highestLocalNonce)
+ const highestSuggested = Math.max(nextNetworkNonce, highestLocallyConfirmed)
const pendingTxs = this.getPendingTransactions(address)
const localNonceResult = this._getHighestContinuousFrom(pendingTxs, highestSuggested) || 0
nonceDetails.params = {
- highestLocalNonce,
+ highestLocallyConfirmed,
highestSuggested,
nextNetworkNonce,
}