From 1aae6e549a625fa3a0cf826b928fc230a2f36fb3 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 13 Nov 2018 12:43:47 +0100 Subject: [PATCH] fix parameters consistency --- remix-tests/src/compiler.js | 2 +- remix-tests/src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {