Skip to content

Commit

Permalink
add allow-paths from forge project to compiler args
Browse files Browse the repository at this point in the history
  • Loading branch information
sammyshakes committed Sep 19, 2023
1 parent 663eafb commit 7585f29
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/src/cmd/forge/zksolc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,10 @@ impl ZkSolc {
comp_args.push("--standard-json".to_string());
comp_args.push("--solc".to_string());
comp_args.push(solc_path);
comp_args.push("--base-path".to_string());
comp_args.push(self.project.paths.root.to_str().unwrap().to_string());
comp_args.push("--allow-paths".to_string());
comp_args.push(self.project.allowed_paths.to_string());

// Check if system mode is enabled or if the source path contains "is-system"
if self.is_system || contract_path.to_str().unwrap().contains("is-system") {
Expand Down

0 comments on commit 7585f29

Please sign in to comment.