fix loading compiler from unit test

auto_exec_v2
yann300 3 years ago
parent 5ad1aeec74
commit 44e449080c
  1. 2
      libs/remix-tests/src/compiler.ts

@ -183,7 +183,7 @@ export function compileContractSources (sources: SrcIfc, newCompConfig: any, imp
async.waterfall([
(next) => {
if (!deepequal(UTRunner.compilerConfig, newCompConfig)) {
if (!compiler || !deepequal(UTRunner.compilerConfig, newCompConfig)) {
UTRunner.compilerConfig = newCompConfig
const { currentCompilerUrl, evmVersion, optimize, runs, usingWorker } = newCompConfig
compiler = new RemixCompiler(importFileCb)

Loading…
Cancel
Save