aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-compiler/src
diff options
context:
space:
mode:
authorFabio B <kandinsky454@protonmail.ch>2018-12-19 22:57:30 +0800
committerGitHub <noreply@github.com>2018-12-19 22:57:30 +0800
commitd456710441f5d126c63ae31003ddfffb2654047a (patch)
tree74f623d9ca80fe8b4a82ea9428655c3fe90711cb /packages/sol-compiler/src
parente886ef8c4b3d5f97fca6eb6decf3273fb401222d (diff)
downloaddexon-sol-tools-d456710441f5d126c63ae31003ddfffb2654047a.tar
dexon-sol-tools-d456710441f5d126c63ae31003ddfffb2654047a.tar.gz
dexon-sol-tools-d456710441f5d126c63ae31003ddfffb2654047a.tar.bz2
dexon-sol-tools-d456710441f5d126c63ae31003ddfffb2654047a.tar.lz
dexon-sol-tools-d456710441f5d126c63ae31003ddfffb2654047a.tar.xz
dexon-sol-tools-d456710441f5d126c63ae31003ddfffb2654047a.tar.zst
dexon-sol-tools-d456710441f5d126c63ae31003ddfffb2654047a.zip
Update packages/sol-compiler/src/compiler.ts
Co-Authored-By: LogvinovLeon <logvinov.leon@gmail.com>
Diffstat (limited to 'packages/sol-compiler/src')
-rw-r--r--packages/sol-compiler/src/compiler.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/sol-compiler/src/compiler.ts b/packages/sol-compiler/src/compiler.ts
index 08ab97ba8..d38ccbf39 100644
--- a/packages/sol-compiler/src/compiler.ts
+++ b/packages/sol-compiler/src/compiler.ts
@@ -173,7 +173,8 @@ export class Compiler {
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.
+ // 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);
}
const pathsToWatch = _.uniq(spyResolver.resolvedContractSources.map(cs => cs.absolutePath));