You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
When using Ganache in the browser, the following line fails:
if(options.miner.instamine==="eager"){// in eager instamine mode we must delay the broadcast of new blocksawaitnewPromise(resolve=>{// we delay emitting blocks and blockLogs because we need to allow for:// ```// await provider.request({"method": "eth_sendTransaction"...)// await provider.once("message") // <- should work// ```// If we don't have this delay here the messages will be sent before// the call has a chance to listen to the event.setImmediate(async()=>{// emit block logs first so filters can pick them up before// block listeners are notifiedawaitPromise.all([this.emit("blockLogs",blockLogs),this.emit("block",block)]);resolve(void0);});});}
With the error: setImmediate is not defined.
It looks like setImmediate needs to be polyfilled for "eager" mode to work properly in the browser.
The text was updated successfully, but these errors were encountered:
When using Ganache in the browser, the following line fails:
With the error:
setImmediate is not defined
.It looks like
setImmediate
needs to be polyfilled for "eager" mode to work properly in the browser.The text was updated successfully, but these errors were encountered: