aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-compiler
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2019-02-07 20:10:08 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2019-02-07 20:10:08 +0800
commitd567c58d3b2b8d858977c310b2978e65a587b968 (patch)
tree6e3e467b840d69181f5ff2176b931f648cd1270f /packages/sol-compiler
parent64d6dae672e71f6c81b472a58cb9c443607262c9 (diff)
downloaddexon-0x-contracts-d567c58d3b2b8d858977c310b2978e65a587b968.tar
dexon-0x-contracts-d567c58d3b2b8d858977c310b2978e65a587b968.tar.gz
dexon-0x-contracts-d567c58d3b2b8d858977c310b2978e65a587b968.tar.bz2
dexon-0x-contracts-d567c58d3b2b8d858977c310b2978e65a587b968.tar.lz
dexon-0x-contracts-d567c58d3b2b8d858977c310b2978e65a587b968.tar.xz
dexon-0x-contracts-d567c58d3b2b8d858977c310b2978e65a587b968.tar.zst
dexon-0x-contracts-d567c58d3b2b8d858977c310b2978e65a587b968.zip
Fix a bug when ast and legacyAST were not present in the artifacts even if requested
Diffstat (limited to 'packages/sol-compiler')
-rw-r--r--packages/sol-compiler/CHANGELOG.json4
-rw-r--r--packages/sol-compiler/src/utils/compiler.ts2
2 files changed, 5 insertions, 1 deletions
diff --git a/packages/sol-compiler/CHANGELOG.json b/packages/sol-compiler/CHANGELOG.json
index 977699ad6..78db31b0f 100644
--- a/packages/sol-compiler/CHANGELOG.json
+++ b/packages/sol-compiler/CHANGELOG.json
@@ -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"
}
]
},
diff --git a/packages/sol-compiler/src/utils/compiler.ts b/packages/sol-compiler/src/utils/compiler.ts
index 34aa1a3b8..28049e453 100644
--- a/packages/sol-compiler/src/utils/compiler.ts
+++ b/packages/sol-compiler/src/utils/compiler.ts
@@ -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,