From 3f037c33188d7bfb93a6d88848ef7734c39537b5 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Fri, 27 Sep 2019 20:05:04 +0530 Subject: [PATCH] wait for compiler to load --- remix-tests/src/compiler.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/remix-tests/src/compiler.ts b/remix-tests/src/compiler.ts index 18cb19156a..9d580df4a2 100644 --- a/remix-tests/src/compiler.ts +++ b/remix-tests/src/compiler.ts @@ -106,9 +106,9 @@ export function compileContractSources(sources: SrcIfc, versionUrl: any, usingWo function loadCompiler (next: Function) { compiler = new RemixCompiler(importFileCb) compiler.loadVersion(usingWorker, versionUrl) - // compiler.event.register('compilerLoaded', this, function (version) { - next() - // }); + compiler.event.register('compilerLoaded', this, function (version) { + next() + }); }, function doCompilation (next: Function) { // @ts-ignore