Skip to content

Commit

Permalink
feat(compiler:zk): zksolc 1.5.7 (#688)
Browse files Browse the repository at this point in the history
* fix(compiler:zk): non-opt `OutputSelection`

fix(compiler:zk): `codegen`

* chore: bump compilers

* chore: re-bump compilers after merge
  • Loading branch information
Karrq authored Nov 4, 2024
1 parent 883034d commit 953a180
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 8 additions & 5 deletions crates/config/src/zksync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ use foundry_compilers::{
},
solc::CliSettings,
zksolc::{
settings::{BytecodeHash, Optimizer, OptimizerDetails, SettingsMetadata, ZkSolcSettings},
settings::{
BytecodeHash, Codegen, Optimizer, OptimizerDetails, SettingsMetadata, ZkSolcSettings,
},
ZkSettings,
},
};
Expand Down Expand Up @@ -122,11 +124,12 @@ impl ZkSyncConfig {
force_evmla: self.force_evmla,
llvm_options: self.llvm_options.clone(),
output_selection: OutputSelection {
all: Some(FileOutputSelection {
per_file: None,
per_contract: Some([OutputSelectionFlag::ABI].into()),
}),
all: FileOutputSelection {
per_file: [].into(),
per_contract: [OutputSelectionFlag::ABI].into(),
},
},
codegen: if self.force_evmla { Codegen::EVMLA } else { Codegen::Yul },
};

// `cli_settings` get set from `Project` values when building `ZkSolcVersionedInput`
Expand Down

0 comments on commit 953a180

Please sign in to comment.