Update packages/sol-compiler/src/compiler.ts

Co-Authored-By: LogvinovLeon <logvinov.leon@gmail.com>
This commit is contained in:
Fabio B 2018-12-19 15:15:15 +01:00 committed by Leonid Logvinov
parent 237014e823
commit 69de1d05ef
No known key found for this signature in database
GPG Key ID: 0DD294BFDE8C95D4

View File

@ -297,7 +297,7 @@ export class Compiler {
const compiledContract = compilerOutput.contracts[contractPath][contractName];
// need to gather sourceCodes for this artifact, but compilerOutput.sources (the list of contract modules)
// contains listings for for every contract compiled during the compiler invocation that compiled the contract
// contains listings for every contract compiled during the compiler invocation that compiled the contract
// to be persisted, which could include many that are irrelevant to the contract at hand. So, gather up only
// the relevant sources:
const { sourceCodes, sources } = getSourcesWithDependencies(