From 44e449080c1155f9d6156baf3dedc49ad029cca0 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 24 Mar 2022 15:38:51 +0100 Subject: [PATCH] fix loading compiler from unit test --- libs/remix-tests/src/compiler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/remix-tests/src/compiler.ts b/libs/remix-tests/src/compiler.ts index 697483d593..f16c925edc 100644 --- a/libs/remix-tests/src/compiler.ts +++ b/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)