Commit 3f037c33 authored by aniket-engg's avatar aniket-engg

wait for compiler to load

parent 7599a74b
...@@ -106,9 +106,9 @@ export function compileContractSources(sources: SrcIfc, versionUrl: any, usingWo ...@@ -106,9 +106,9 @@ export function compileContractSources(sources: SrcIfc, versionUrl: any, usingWo
function loadCompiler (next: Function) { function loadCompiler (next: Function) {
compiler = new RemixCompiler(importFileCb) compiler = new RemixCompiler(importFileCb)
compiler.loadVersion(usingWorker, versionUrl) compiler.loadVersion(usingWorker, versionUrl)
// compiler.event.register('compilerLoaded', this, function (version) { compiler.event.register('compilerLoaded', this, function (version) {
next() next()
// }); });
}, },
function doCompilation (next: Function) { function doCompilation (next: Function) {
// @ts-ignore // @ts-ignore
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment