Skip to content

Commit 883034d

Browse files
authored
fix: sanitize input based on solc version (#690)
1 parent aa85b6a commit 883034d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/verify/src/zksync/standard_json.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ impl ZksyncSourceProvider for ZksyncStandardJsonSource {
1111
&self,
1212
context: &ZkVerificationContext,
1313
) -> Result<(StandardJsonCompilerInput, String)> {
14-
let input = foundry_compilers::zksync::project_standard_json_input(
14+
let mut input = foundry_compilers::zksync::project_standard_json_input(
1515
&context.project,
1616
&context.target_path,
1717
)
1818
.wrap_err("failed to get zksolc standard json")?;
1919

20+
// Sanitize the input
21+
input.settings = input.settings.clone().sanitized(&context.compiler_version.solc);
22+
2023
let relative_path = context
2124
.target_path
2225
.strip_prefix(context.project.root())

0 commit comments

Comments
 (0)