Commit 6603b798 authored by aniket-engg's avatar aniket-engg

run in test source compilation

parent 1d68ec3b
......@@ -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) => {
......
......@@ -53,7 +53,8 @@ export interface CompilerConfiguration {
currentCompilerUrl: string,
evmVersion: string,
optimize: boolean,
usingWorker: boolean
usingWorker: boolean,
runs: number
}
export interface CompilationErrors {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment