mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix promise construction
This commit is contained in:
parent
16f9ddc72c
commit
98d3fba3ef
@ -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)
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user