Fix incorrect promise instantiation

This commit is contained in:
Dan Finlay 2018-02-15 15:32:48 -08:00
parent 70132e6df6
commit 73e5ae6e29
1 changed files with 1 additions and 1 deletions

View File

@ -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)
})
}