From 6817b709f6540923b15d0291c8e0ece1324b9c12 Mon Sep 17 00:00:00 2001 From: Juan Ignacio Ubeira Date: Fri, 13 Dec 2024 16:26:13 -0300 Subject: [PATCH] Check artifacts iterating artifacts, not build info. --- src/artifact.ts | 9 +++++---- v2/tasks/20211202-no-protocol-fee-lbp/readme.md | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/artifact.ts b/src/artifact.ts index 4313eff4f..2df3e7878 100644 --- a/src/artifact.ts +++ b/src/artifact.ts @@ -47,10 +47,11 @@ export function checkArtifact(task: Task): void { readmeLines = readmeContents.split('\n'); } - const buildInfoDirectory = path.resolve(task.dir(), 'build-info'); - if (existsSync(buildInfoDirectory) && statSync(buildInfoDirectory).isDirectory()) { - for (const buildInfoFileName of readdirSync(buildInfoDirectory)) { - const fileName = path.parse(buildInfoFileName).name; + const artifactDirectory = path.resolve(task.dir(), 'artifact'); + + if (existsSync(artifactDirectory) && statSync(artifactDirectory).isDirectory()) { + for (const artifactFileName of readdirSync(artifactDirectory)) { + const fileName = path.parse(artifactFileName).name; const contractName = fileName; const expectedArtifact = task.artifact(contractName, fileName); diff --git a/v2/tasks/20211202-no-protocol-fee-lbp/readme.md b/v2/tasks/20211202-no-protocol-fee-lbp/readme.md index 55893d89d..337bac0ea 100644 --- a/v2/tasks/20211202-no-protocol-fee-lbp/readme.md +++ b/v2/tasks/20211202-no-protocol-fee-lbp/readme.md @@ -16,4 +16,5 @@ Deployment of the `NoProtocolFeeLiquidityBootstrappingPool`, for Liquidity Boots - [Fraxtal mainnet addresses](./output/fraxtal.json) - [Mode mainnet addresses](./output/mode.json) - [Sepolia testnet addresses](./output/sepolia.json) +- [`LiquidityBootstrappingPool` artifact](./artifact/LiquidityBootstrappingPool.json) - [`NoProtocolFeeLiquidityBootstrappingPoolFactory` artifact](./artifact/NoProtocolFeeLiquidityBootstrappingPoolFactory.json)