From 1fb73067849b31564bf3a4220ba250eeab0245d5 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Mon, 9 Nov 2020 20:01:18 +0530 Subject: [PATCH] run in test source compilation --- libs/remix-tests/src/compiler.ts | 3 ++- libs/remix-tests/src/types.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/remix-tests/src/compiler.ts b/libs/remix-tests/src/compiler.ts index 117b46a79f..6890e6c03b 100644 --- a/libs/remix-tests/src/compiler.ts +++ b/libs/remix-tests/src/compiler.ts @@ -180,10 +180,11 @@ export function compileContractSources(sources: SrcIfc, compilerConfig: Compiler async.waterfall([ function loadCompiler (next) { - const {currentCompilerUrl, evmVersion, optimize, usingWorker} = compilerConfig + const {currentCompilerUrl, evmVersion, optimize, runs, usingWorker} = compilerConfig compiler = new RemixCompiler(importFileCb) compiler.set('evmVersion', evmVersion) compiler.set('optimize', optimize) + compiler.set('runs', runs) compiler.loadVersion(usingWorker, currentCompilerUrl) // @ts-ignore compiler.event.register('compilerLoaded', this, (version) => { diff --git a/libs/remix-tests/src/types.ts b/libs/remix-tests/src/types.ts index a57f557726..67293ba38b 100644 --- a/libs/remix-tests/src/types.ts +++ b/libs/remix-tests/src/types.ts @@ -53,7 +53,8 @@ export interface CompilerConfiguration { currentCompilerUrl: string, evmVersion: string, optimize: boolean, - usingWorker: boolean + usingWorker: boolean, + runs: number } export interface CompilationErrors {