From b513e390bf349481e4009c2906c2a13986d3fa4d Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Tue, 15 Oct 2024 15:28:49 -0500 Subject: [PATCH] feat: adds support for forge clean to remove zkout directory (#611) feat: adds support for zksolc forge clean --- crates/forge/bin/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/forge/bin/main.rs b/crates/forge/bin/main.rs index f92d3db80..206eb730a 100644 --- a/crates/forge/bin/main.rs +++ b/crates/forge/bin/main.rs @@ -83,7 +83,10 @@ fn main() -> Result<()> { ForgeSubcommand::Clean { root } => { let config = utils::load_config_with_root(root.as_deref()); let project = config.project()?; + let zk_project = + foundry_zksync_compiler::config_create_project(&config, config.cache, false)?; config.cleanup(&project)?; + config.cleanup(&zk_project)?; Ok(()) } ForgeSubcommand::Snapshot(cmd) => {