Skip to content

Commit

Permalink
fix: only compile target file on create
Browse files Browse the repository at this point in the history
  • Loading branch information
elfedy committed Jul 19, 2024
1 parent cde1cfc commit 826bb5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/forge/bin/cmd/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ impl CreateArgs {

let config = self.opts.try_load_config_emit_warnings()?;
let zk_project = foundry_zksync_compiler::create_project(&config, config.cache, false)?;
let zk_compiler = ProjectCompiler::new().quiet(self.json || self.opts.silent);
let zk_compiler = ProjectCompiler::new()
.quiet(self.json || self.opts.silent)
.files([target_path.clone()]);
let mut zk_output =
zk_compiler.zksync_compile(&zk_project, config.zksync.avoid_contracts())?;

Expand Down

0 comments on commit 826bb5c

Please sign in to comment.