fix loading compiler from unit test

pull/2244/head^2
yann300 3 years ago
parent 267f2abc30
commit 63874ab4b7
  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