diff options
author | Dan Finlay <dan@danfinlay.com> | 2018-02-16 07:32:48 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2018-02-16 07:32:48 +0800 |
commit | 73e5ae6e29d04481cc3ffdd32d5d096e6a10b3b3 (patch) | |
tree | d5636e55cb833bec47c18f9bdc638c9d78378f94 | |
parent | 70132e6df6de0722113f5b461b4cec2419c45266 (diff) | |
download | tangerine-wallet-browser-73e5ae6e29d04481cc3ffdd32d5d096e6a10b3b3.tar.gz tangerine-wallet-browser-73e5ae6e29d04481cc3ffdd32d5d096e6a10b3b3.tar.zst tangerine-wallet-browser-73e5ae6e29d04481cc3ffdd32d5d096e6a10b3b3.zip |
Fix incorrect promise instantiation
-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 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) }) } |