Fix promise construction

feature/default_network_editable
Dan Finlay 7 years ago
parent 16f9ddc72c
commit 98d3fba3ef
  1. 2
      app/scripts/lib/nonce-tracker.js

@ -56,7 +56,7 @@ class NonceTracker {
const blockTracker = this._getBlockTracker() const blockTracker = this._getBlockTracker()
const currentBlock = blockTracker.getCurrentBlock() const currentBlock = blockTracker.getCurrentBlock()
if (currentBlock) return currentBlock if (currentBlock) return currentBlock
return await Promise((reject, resolve) => { return await new Promise((reject, resolve) => {
blockTracker.once('latest', resolve) blockTracker.once('latest', resolve)
}) })
} }

Loading…
Cancel
Save