Commit 1aae6e54 authored by yann300's avatar yann300

fix parameters consistency

parent fc6a27d0
......@@ -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.
......
......@@ -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) {
......
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