fix parameters consistency

pull/7/head
yann300 6 years ago
parent fc6a27d0f8
commit 1aae6e549a
  1. 2
      remix-tests/src/compiler.js
  2. 2
      remix-tests/src/index.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.

@ -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) {

Loading…
Cancel
Save