Skip to content

Commit 953a180

Browse files
authored
feat(compiler:zk): zksolc 1.5.7 (#688)
* fix(compiler:zk): non-opt `OutputSelection` fix(compiler:zk): `codegen` * chore: bump compilers * chore: re-bump compilers after merge
1 parent 883034d commit 953a180

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/config/src/zksync.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ use foundry_compilers::{
55
},
66
solc::CliSettings,
77
zksolc::{
8-
settings::{BytecodeHash, Optimizer, OptimizerDetails, SettingsMetadata, ZkSolcSettings},
8+
settings::{
9+
BytecodeHash, Codegen, Optimizer, OptimizerDetails, SettingsMetadata, ZkSolcSettings,
10+
},
911
ZkSettings,
1012
},
1113
};
@@ -122,11 +124,12 @@ impl ZkSyncConfig {
122124
force_evmla: self.force_evmla,
123125
llvm_options: self.llvm_options.clone(),
124126
output_selection: OutputSelection {
125-
all: Some(FileOutputSelection {
126-
per_file: None,
127-
per_contract: Some([OutputSelectionFlag::ABI].into()),
128-
}),
127+
all: FileOutputSelection {
128+
per_file: [].into(),
129+
per_contract: [OutputSelectionFlag::ABI].into(),
130+
},
129131
},
132+
codegen: if self.force_evmla { Codegen::EVMLA } else { Codegen::Yul },
130133
};
131134

132135
// `cli_settings` get set from `Project` values when building `ZkSolcVersionedInput`

0 commit comments

Comments
 (0)