add importFileCb to compiler.js

pull/7/head
yann300 7 years ago committed by GitHub
parent 35b572bdd1
commit d9412c747b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/compiler.js

@ -46,7 +46,7 @@ function compileFileOrFiles (filename, isDirectory, cb) {
})
}
function compileContractSources (sources, cb) {
function compileContractSources (sources, importFileCb, cb) {
let compiler, filepath
if(!sources['remix_tests.sol']) {
@ -55,7 +55,7 @@ function compileContractSources (sources, cb) {
async.waterfall([
function loadCompiler (next) {
compiler = new RemixCompiler()
compiler = new RemixCompiler(importFileCb)
compiler.onInternalCompilerLoaded()
// compiler.event.register('compilerLoaded', this, function (version) {
next()

Loading…
Cancel
Save