aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/nonce-tracker.js
diff options
context:
space:
mode:
authorThomas Huang <thomas.b.huang@gmail.com>2018-02-21 09:49:31 +0800
committerThomas Huang <thomas.b.huang@gmail.com>2018-02-21 09:49:31 +0800
commit3fb9e04f5ff8c762c85cfc2386c555868a7b794d (patch)
tree6cabe45b24906776c91a11933a41c605daadce73 /app/scripts/lib/nonce-tracker.js
parentf2f47956973852bc055c50f226cf57e65c458855 (diff)
parentb1b97727313eaa3a375541e85f43b5f2253ad6de (diff)
downloadtangerine-wallet-browser-3fb9e04f5ff8c762c85cfc2386c555868a7b794d.tar
tangerine-wallet-browser-3fb9e04f5ff8c762c85cfc2386c555868a7b794d.tar.gz
tangerine-wallet-browser-3fb9e04f5ff8c762c85cfc2386c555868a7b794d.tar.bz2
tangerine-wallet-browser-3fb9e04f5ff8c762c85cfc2386c555868a7b794d.tar.lz
tangerine-wallet-browser-3fb9e04f5ff8c762c85cfc2386c555868a7b794d.tar.xz
tangerine-wallet-browser-3fb9e04f5ff8c762c85cfc2386c555868a7b794d.tar.zst
tangerine-wallet-browser-3fb9e04f5ff8c762c85cfc2386c555868a7b794d.zip
Merge branch 'MM-806-new-ui-first-time-import-seed-in-popup' of https://github.com/danjm/metamask-extension into MM-806-new-ui-first-time-import-seed-in-popup
Diffstat (limited to 'app/scripts/lib/nonce-tracker.js')
-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 0029ac953..ed9dd3f11 100644
--- a/app/scripts/lib/nonce-tracker.js
+++ b/app/scripts/lib/nonce-tracker.js
@@ -56,7 +56,7 @@ class NonceTracker {
const blockTracker = this._getBlockTracker()
const currentBlock = blockTracker.getCurrentBlock()
if (currentBlock) return currentBlock
- return await Promise((reject, resolve) => {
+ return await new Promise((reject, resolve) => {
blockTracker.once('latest', resolve)
})
}