aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2018-02-21 07:45:48 +0800
committerDan Finlay <dan@danfinlay.com>2018-02-21 07:45:48 +0800
commit98d3fba3efaedb65ee0cf60b4cc3f954a1fd9740 (patch)
tree7c7bf76edce8c9d3616abdb7c171b0ee43927515 /app
parent16f9ddc72c4a1c49402ea3b883a0e580c19f0651 (diff)
downloadtangerine-wallet-browser-98d3fba3efaedb65ee0cf60b4cc3f954a1fd9740.tar
tangerine-wallet-browser-98d3fba3efaedb65ee0cf60b4cc3f954a1fd9740.tar.gz
tangerine-wallet-browser-98d3fba3efaedb65ee0cf60b4cc3f954a1fd9740.tar.bz2
tangerine-wallet-browser-98d3fba3efaedb65ee0cf60b4cc3f954a1fd9740.tar.lz
tangerine-wallet-browser-98d3fba3efaedb65ee0cf60b4cc3f954a1fd9740.tar.xz
tangerine-wallet-browser-98d3fba3efaedb65ee0cf60b4cc3f954a1fd9740.tar.zst
tangerine-wallet-browser-98d3fba3efaedb65ee0cf60b4cc3f954a1fd9740.zip
Fix promise construction
Diffstat (limited to 'app')
-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)
})
}