wait for compiler to load

pull/7/head
aniket-engg 5 years ago
parent 7599a74b89
commit 3f037c3318
  1. 4
      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) {
compiler.event.register('compilerLoaded', this, function (version) {
next()
// });
});
},
function doCompilation (next: Function) {
// @ts-ignore

Loading…
Cancel
Save