Skip to content

Commit

Permalink
Force write the deployment information to disk
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienGllmt committed Sep 21, 2024
1 parent bf7e7fb commit 97a55a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/hardhat-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ ignitionScope
const deploymentId = resolveDeploymentId(givenDeploymentId, chainId);

const deploymentDir =
hre.network.name === "hardhat"
// allow overriding givenDeploymentId to force writing to disk in in-memory mode
hre.network.name === "hardhat" && givenDeploymentId === undefined
? undefined
: path.join(hre.config.paths.ignition, "deployments", deploymentId);

Expand Down

0 comments on commit 97a55a7

Please sign in to comment.