trufflesuite / truffle-compile

Compiler helper and artifact manager
22 stars 46 forks source link

parseImports should use the import callback #36

Open axic opened 6 years ago

axic commented 6 years ago

parseImports currently tries to parse the file names from error messages. It would be much more reliable to use the import callback the compiler provides:

compilerStandard(json, function (path) { ...})

The function will need to return either { error: "Error message" } or { contents: "<file contents>" }.