Skip to content

Commit

Permalink
fix: sanitize input based on solc version
Browse files Browse the repository at this point in the history
  • Loading branch information
dutterbutter committed Nov 1, 2024
1 parent aa85b6a commit 36b86c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/verify/src/zksync/standard_json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ impl ZksyncSourceProvider for ZksyncStandardJsonSource {
&self,
context: &ZkVerificationContext,
) -> Result<(StandardJsonCompilerInput, String)> {
let input = foundry_compilers::zksync::project_standard_json_input(
let mut input = foundry_compilers::zksync::project_standard_json_input(
&context.project,
&context.target_path,
)
.wrap_err("failed to get zksolc standard json")?;

// Sanitize the input
input.settings = input.settings.clone().sanitized(&context.compiler_version.solc);

let relative_path = context
.target_path
.strip_prefix(context.project.root())
Expand Down

0 comments on commit 36b86c9

Please sign in to comment.