Skip to content

Commit

Permalink
Merge pull request #35 from Certora/cnandi/bug-fix
Browse files Browse the repository at this point in the history
fix bug in allow paths
  • Loading branch information
chandrakananandi authored Nov 23, 2023
2 parents d1a0289 + 6a5678f commit 05abe4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ similar = "2"
strum = "0.24.1"
strum_macros = "0.24.3"
tempfile = "3"
itertools = "0.12.0"
7 changes: 4 additions & 3 deletions src/compile.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use itertools::join;
use crate::invoke_command;
use crate::SolAST;
use serde_json::Value;
Expand Down Expand Up @@ -299,9 +300,9 @@ impl Solc {

if let Some(allow_paths) = &self.allow_paths {
flags.push(ALLOWPATHS.into());
for r in allow_paths {
flags.push(r.clone());
}
let comma_separated = join(allow_paths, ",");
flags.push(comma_separated);

}

if let Some(include_path) = &self.include_path {
Expand Down

0 comments on commit 05abe4a

Please sign in to comment.