aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-compiler/src/compiler.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-12-19 22:36:26 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-12-19 22:41:49 +0800
commit5c4a992b87aa4341fc768eb4865179f2d36abad2 (patch)
treec7e88d6d2fcc86da372007920ea124654e9da43c /packages/sol-compiler/src/compiler.ts
parent0abf1c71f64e90aba3e3bac55c8c24dc984bf80d (diff)
downloaddexon-sol-tools-5c4a992b87aa4341fc768eb4865179f2d36abad2.tar
dexon-sol-tools-5c4a992b87aa4341fc768eb4865179f2d36abad2.tar.gz
dexon-sol-tools-5c4a992b87aa4341fc768eb4865179f2d36abad2.tar.bz2
dexon-sol-tools-5c4a992b87aa4341fc768eb4865179f2d36abad2.tar.lz
dexon-sol-tools-5c4a992b87aa4341fc768eb4865179f2d36abad2.tar.xz
dexon-sol-tools-5c4a992b87aa4341fc768eb4865179f2d36abad2.tar.zst
dexon-sol-tools-5c4a992b87aa4341fc768eb4865179f2d36abad2.zip
Add a NOTE comment
Diffstat (limited to 'packages/sol-compiler/src/compiler.ts')
-rw-r--r--packages/sol-compiler/src/compiler.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/sol-compiler/src/compiler.ts b/packages/sol-compiler/src/compiler.ts
index eca887ce9..793ab4f93 100644
--- a/packages/sol-compiler/src/compiler.ts
+++ b/packages/sol-compiler/src/compiler.ts
@@ -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));