1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Got all tests but one passing

This commit is contained in:
Dan Finlay 2017-08-23 20:11:37 -07:00
parent 221575a191
commit 04d40b114d

View File

@ -30,6 +30,7 @@ class NonceTracker {
const nonceDetails = {} const nonceDetails = {}
const networkNonceResult = await this._getNetworkNextNonce(address) const networkNonceResult = await this._getNetworkNextNonce(address)
const highestLocallyConfirmed = this._getHighestLocallyConfirmed(address) const highestLocallyConfirmed = this._getHighestLocallyConfirmed(address)
const highestConfirmed = Math.max(networkNonceResult.nonce, highestLocallyConfirmed) const highestConfirmed = Math.max(networkNonceResult.nonce, highestLocallyConfirmed)
const pendingTxs = this.getPendingTransactions(address) const pendingTxs = this.getPendingTransactions(address)
const localNonceResult = this._getHighestContinuousFrom(pendingTxs, highestConfirmed) || 0 const localNonceResult = this._getHighestContinuousFrom(pendingTxs, highestConfirmed) || 0