Add a NOTE comment

This commit is contained in:
Leonid Logvinov
2018-12-19 15:36:26 +01:00
parent 0abf1c71f6
commit 5c4a992b87

View File

@@ -166,6 +166,9 @@ export class Compiler {
const spyResolver = new SpyResolver(this._resolver);
for (const contractName of contractNames) {
const contractSource = spyResolver.resolve(contractName);
// 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
// this is a convinient way to reuse the existing code that does that.
getSourceTreeHash(spyResolver, contractSource.path);
}
const pathsToWatch = _.uniq(spyResolver.resolvedContractSources.map(cs => cs.absolutePath));