Skip to content

Commit

Permalink
Add ast arg to hardhat forge compile task
Browse files Browse the repository at this point in the history
  • Loading branch information
defi-dev committed Aug 1, 2024
1 parent 1615dde commit 0c6f7a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/hardhat-forge/src/forge/build/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export declare interface ForgeBuildArgs extends CompilerArgs, ProjectPathArgs {
useSolc?: string;
offline?: boolean;
viaIr?: boolean;
ast?: boolean;
buildInfo?: boolean;
buildInfoPath?: string;
}
Expand Down Expand Up @@ -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");
}
Expand Down

0 comments on commit 0c6f7a3

Please sign in to comment.