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:57:30 +01:00 committed by GitHub
parent e886ef8c4b
commit d456710441
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,7 +173,8 @@ export class Compiler {
const contractSource = spyResolver.resolve(contractName); const contractSource = spyResolver.resolve(contractName);
// NOTE: We ignore the return value here. We don't want to compute the source tree hash. // NOTE: We ignore the return value here. We don't want to compute the source tree hash.
// We just want to call a SpyResolver on each contracts and it's dependencies and // We just want to call a SpyResolver on each contracts and it's dependencies and
// this is a convinient way to reuse the existing code that does that. // this is a convenient way to reuse the existing code that does that.
// We can then get all the relevant paths from the `spyResolver` below.
getSourceTreeHash(spyResolver, contractSource.path); getSourceTreeHash(spyResolver, contractSource.path);
} }
const pathsToWatch = _.uniq(spyResolver.resolvedContractSources.map(cs => cs.absolutePath)); const pathsToWatch = _.uniq(spyResolver.resolvedContractSources.map(cs => cs.absolutePath));