Merge pull request #10 from ethereum/yann300-patch-1

add importFileCb to compiler.js
pull/3094/head
Iuri Matias 7 years ago committed by GitHub
commit 639ed4da50
  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 let compiler, filepath
if(!sources['remix_tests.sol']) { if(!sources['remix_tests.sol']) {
@ -55,7 +55,7 @@ function compileContractSources (sources, cb) {
async.waterfall([ async.waterfall([
function loadCompiler (next) { function loadCompiler (next) {
compiler = new RemixCompiler() compiler = new RemixCompiler(importFileCb)
compiler.onInternalCompilerLoaded() compiler.onInternalCompilerLoaded()
// compiler.event.register('compilerLoaded', this, function (version) { // compiler.event.register('compilerLoaded', this, function (version) {
next() next()

Loading…
Cancel
Save