Unverified Commit 4f7d414b authored by Iuri Matias's avatar Iuri Matias Committed by GitHub

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

add importFileCb to compiler.js
parents 35b572bd d9412c74
...@@ -46,7 +46,7 @@ function compileFileOrFiles (filename, isDirectory, cb) { ...@@ -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) { ...@@ -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()
......
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