aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2018-02-16 07:32:48 +0800
committerDan Finlay <dan@danfinlay.com>2018-02-16 07:32:48 +0800
commit73e5ae6e29d04481cc3ffdd32d5d096e6a10b3b3 (patch)
treed5636e55cb833bec47c18f9bdc638c9d78378f94
parent70132e6df6de0722113f5b461b4cec2419c45266 (diff)
downloadtangerine-wallet-browser-73e5ae6e29d04481cc3ffdd32d5d096e6a10b3b3.tar
tangerine-wallet-browser-73e5ae6e29d04481cc3ffdd32d5d096e6a10b3b3.tar.gz
tangerine-wallet-browser-73e5ae6e29d04481cc3ffdd32d5d096e6a10b3b3.tar.bz2
tangerine-wallet-browser-73e5ae6e29d04481cc3ffdd32d5d096e6a10b3b3.tar.lz
tangerine-wallet-browser-73e5ae6e29d04481cc3ffdd32d5d096e6a10b3b3.tar.xz
tangerine-wallet-browser-73e5ae6e29d04481cc3ffdd32d5d096e6a10b3b3.tar.zst
tangerine-wallet-browser-73e5ae6e29d04481cc3ffdd32d5d096e6a10b3b3.zip
Fix incorrect promise instantiation
-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)
})
}