aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2017-08-24 15:15:24 +0800
committerGitHub <noreply@github.com>2017-08-24 15:15:24 +0800
commit9ce82640f25efa2dd1e0b8e8d449b7a9619e5f2c (patch)
treee36d653722775ddd129efb156afbed64b2d8b8af /app/scripts/lib
parent799c4cb6903bd7395c82abe879978cc911ae0a36 (diff)
parentc2624dd1a071ea4388df23400f4319e863d061c6 (diff)
downloadtangerine-wallet-browser-9ce82640f25efa2dd1e0b8e8d449b7a9619e5f2c.tar.gz
tangerine-wallet-browser-9ce82640f25efa2dd1e0b8e8d449b7a9619e5f2c.tar.zst
tangerine-wallet-browser-9ce82640f25efa2dd1e0b8e8d449b7a9619e5f2c.zip
Merge pull request #1973 from MetaMask/hotfix-migration019
hotfix - fail submitted txs whos nonce is out of bound
Diffstat (limited to 'app/scripts/lib')
-rw-r--r--app/scripts/lib/nonce-tracker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/lib/nonce-tracker.js b/app/scripts/lib/nonce-tracker.js
index 08f1e1e86..0029ac953 100644
--- a/app/scripts/lib/nonce-tracker.js
+++ b/app/scripts/lib/nonce-tracker.js
@@ -88,7 +88,7 @@ class NonceTracker {
// and pending count are from the same block
const currentBlock = await this._getCurrentBlock()
const blockNumber = currentBlock.blockNumber
- const baseCountBN = await this.ethQuery.getTransactionCount(address, blockNumber)
+ const baseCountBN = await this.ethQuery.getTransactionCount(address, blockNumber || 'latest')
const baseCount = baseCountBN.toNumber()
assert(Number.isInteger(baseCount), `nonce-tracker - baseCount is not an integer - got: (${typeof baseCount}) "${baseCount}"`)
const nonceDetails = { blockNumber, baseCount }