make handleImportCall optional

pull/7/head
Iuri Matias 7 years ago
parent c54ce861af
commit 2e2d9df377
  1. 18
      remix-solidity/src/compiler/compiler.js

@ -324,14 +324,16 @@ function Compiler (handleImportCall) {
continue
}
handleImportCall(m, function (err, content) {
if (err) {
cb(err)
} else {
files[m] = { content }
gatherImports(files, target, importHints, cb)
}
})
if (handleImportCall) {
handleImportCall(m, function (err, content) {
if (err) {
cb(err)
} else {
files[m] = { content }
gatherImports(files, target, importHints, cb)
}
})
}
return
}

Loading…
Cancel
Save