diff --git a/packages/hardhat-foundry/src/index.ts b/packages/hardhat-foundry/src/index.ts index 68d1b061ae..a9f2eaf490 100644 --- a/packages/hardhat-foundry/src/index.ts +++ b/packages/hardhat-foundry/src/index.ts @@ -66,7 +66,7 @@ extendConfig((config, userConfig) => { config.paths.root, foundryConfig.cache_path ); - if (config.paths.cache === foundryCachePath) { + if (config.paths.cache !== foundryCachePath) { config.paths.cache = "cache_hardhat"; }