Skip to content

Commit e54f4f7

Browse files
authored
Merge pull request #5152 from ItsNickBarry/fix-foundry-path
use absolute path for foundry sources
2 parents a6324d1 + a93e240 commit e54f4f7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/cyan-cheetahs-add.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@nomicfoundation/hardhat-foundry": patch
3+
---
4+
5+
Use absolute rather than relative path when overriding sources configuration

packages/hardhat-foundry/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ extendConfig((config, userConfig) => {
5959
}
6060

6161
// Set sources path
62-
config.paths.sources = foundrySourcesPath;
62+
config.paths.sources = path.resolve(config.paths.root, foundrySourcesPath);
6363

6464
// Change hardhat's cache path if it clashes with foundry's
6565
const foundryCachePath = path.resolve(

0 commit comments

Comments
 (0)