Fix a bug when ast and legacyAST were not present in the artifacts even if requested

This commit is contained in:
Leonid Logvinov
2019-02-07 13:10:08 +01:00
parent 64d6dae672
commit d567c58d3b
2 changed files with 5 additions and 1 deletions

View File

@@ -13,6 +13,10 @@
{
"note": "Remove `bin_paths` and fetch the list of soliidty compilers from github",
"pr": "TODO"
},
{
"note": "Fix a bug when ast and legacyAST were not present in the artifacts even if requested",
"pr": "TODO"
}
]
},

View File

@@ -251,7 +251,7 @@ export function getSourcesWithDependencies(
contractPath: string,
fullSources: { [sourceName: string]: { id: number } },
): { sourceCodes: { [sourceName: string]: string }; sources: { [sourceName: string]: { id: number } } } {
const sources = { [contractPath]: { id: fullSources[contractPath].id } };
const sources = { [contractPath]: fullSources[contractPath] };
const sourceCodes = { [contractPath]: resolver.resolve(contractPath).source };
recursivelyGatherDependencySources(
resolver,