Skip to content

Commit

Permalink
v2
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCalibur committed Aug 28, 2024
1 parent 626fd94 commit 864ff30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/frameworks/Foundry/FoundryProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class FoundryProject extends Project {
await runCmd(`${forgeCommand} config --json`, this.basePath)
);
this.sourcesPath = path.join(this.basePath, config.src);
this.includesPath = path.join(this.basePath, config.include_paths);
this.includesPath = config.include_paths.map((folder: string) => path.join(this.basePath, folder));
this.testsPath = path.join(this.basePath, config.test);
this.libPath = path.join(this.basePath, "lib");
this.scriptPath = path.join(this.basePath, config.script);
Expand Down Expand Up @@ -90,10 +90,10 @@ export class FoundryProject extends Project {
// Project was initialized correctly, then check contract is inside source or test folders
const belongs = [
this.sourcesPath,
this.includesPath,
this.testsPath,
this.libPath,
this.scriptPath,
...this.includesPath,
].some((dir) => directoryContains(dir, uri));
const isLocal = directoryContains(this.sourcesPath, uri);

Expand Down

0 comments on commit 864ff30

Please sign in to comment.