From aa231d1f5c41a4b4a46707c0038904b841b23310 Mon Sep 17 00:00:00 2001 From: defi-dev <69192116+defi-dev@users.noreply.github.com> Date: Thu, 1 Aug 2024 19:12:48 +0800 Subject: [PATCH] Add ast arg to hardhat forge compile task (#114) --- packages/hardhat-forge/src/forge/build/build.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/hardhat-forge/src/forge/build/build.ts b/packages/hardhat-forge/src/forge/build/build.ts index 7cbfa5f..66263a3 100644 --- a/packages/hardhat-forge/src/forge/build/build.ts +++ b/packages/hardhat-forge/src/forge/build/build.ts @@ -21,6 +21,7 @@ export declare interface ForgeBuildArgs extends CompilerArgs, ProjectPathArgs { useSolc?: string; offline?: boolean; viaIr?: boolean; + ast?: boolean; buildInfo?: boolean; buildInfoPath?: string; } @@ -77,6 +78,9 @@ export function buildArgs(args: ForgeBuildArgs): string[] { if (args.viaIr === true) { allArgs.push("--via-ir"); } + if (args.ast === true) { + allArgs.push("--ast"); + } if (args.buildInfo === true) { allArgs.push("--build-info"); }