Merge pull request #571 from ethereum/runInTestsCompilation

'runs' in test source compilation
pull/555/head
yann300 4 years ago committed by GitHub
commit b6aa14a6cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      libs/remix-tests/src/compiler.ts
  2. 3
      libs/remix-tests/src/types.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) => {

@ -53,7 +53,8 @@ export interface CompilerConfiguration {
currentCompilerUrl: string,
evmVersion: string,
optimize: boolean,
usingWorker: boolean
usingWorker: boolean,
runs: number
}
export interface CompilationErrors {

Loading…
Cancel
Save