diff options
author | kumavis <kumavis@users.noreply.github.com> | 2017-08-24 15:15:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-24 15:15:24 +0800 |
commit | 9ce82640f25efa2dd1e0b8e8d449b7a9619e5f2c (patch) | |
tree | e36d653722775ddd129efb156afbed64b2d8b8af /app/scripts/lib | |
parent | 799c4cb6903bd7395c82abe879978cc911ae0a36 (diff) | |
parent | c2624dd1a071ea4388df23400f4319e863d061c6 (diff) | |
download | tangerine-wallet-browser-9ce82640f25efa2dd1e0b8e8d449b7a9619e5f2c.tar tangerine-wallet-browser-9ce82640f25efa2dd1e0b8e8d449b7a9619e5f2c.tar.gz tangerine-wallet-browser-9ce82640f25efa2dd1e0b8e8d449b7a9619e5f2c.tar.bz2 tangerine-wallet-browser-9ce82640f25efa2dd1e0b8e8d449b7a9619e5f2c.tar.lz tangerine-wallet-browser-9ce82640f25efa2dd1e0b8e8d449b7a9619e5f2c.tar.xz 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.js | 2 |
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 } |