diff --git a/remix-tests/src/compiler.js b/remix-tests/src/compiler.js index d143db5f43..476c8ea881 100644 --- a/remix-tests/src/compiler.js +++ b/remix-tests/src/compiler.js @@ -71,7 +71,7 @@ function compileFileOrFiles (filename, isDirectory, opts, cb) { }) } -function compileContractSources (sources, importFileCb, cb, opts) { +function compileContractSources (sources, importFileCb, opts, cb) { let compiler, filepath let accounts = opts.accounts || [] // Iterate over sources keys. Inject test libraries. Inject test library import statements. diff --git a/remix-tests/src/index.js b/remix-tests/src/index.js index baf9c8d674..91aa7e3a01 100644 --- a/remix-tests/src/index.js +++ b/remix-tests/src/index.js @@ -29,7 +29,7 @@ var runTestSources = function (contractSources, testCallback, resultCallback, fi }) }, function compile (next) { - Compiler.compileContractSources(contractSources, importFileCb, next) + Compiler.compileContractSources(contractSources, importFileCb, { accounts }, next) }, function deployAllContracts (compilationResult, next) { Deployer.deployAll(compilationResult, web3, function (err, contracts) {