diff --git a/lib/modules/console/index.js b/lib/modules/console/index.js index 95ec5967..d38a96d6 100644 --- a/lib/modules/console/index.js +++ b/lib/modules/console/index.js @@ -79,11 +79,12 @@ class Console { this.events.emit('runcode:register', 'Web3', Web3, false); this.events.emit('runcode:register', 'EmbarkJS', EmbarkJS, false); - this.events.once('code-generator-ready', () => { - if (this.ipc.connected) { - return; - } + EmbarkJS.Blockchain.done = true; + if (this.ipc.connected) { + return; + } + this.events.once('code-generator-ready', () => { this.events.request('code-generator:embarkjs:provider-code', (code) => { const func = () => {}; this.events.request('runcode:eval', code, func, true);