Skip to content

Commit

Permalink
feat: make bytecode_hash None by default (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
elfedy authored Aug 1, 2024
1 parent 199f026 commit bde6d97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/config/src/zksync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub struct ZkSyncConfig {
pub solc_path: Option<PathBuf>,

/// Whether to include the metadata hash for zksolc compiled bytecode.
pub bytecode_hash: BytecodeHash,
pub bytecode_hash: Option<BytecodeHash>,

/// Whether to try to recompile with -Oz if the bytecode is too large.
pub fallback_oz: bool,
Expand Down Expand Up @@ -111,7 +111,7 @@ impl ZkSyncConfig {
libraries,
optimizer,
evm_version: Some(evm_version),
metadata: Some(SettingsMetadata { bytecode_hash: Some(self.bytecode_hash) }),
metadata: Some(SettingsMetadata { bytecode_hash: self.bytecode_hash }),
via_ir: Some(via_ir),
// Set in project paths.
remappings: Vec::new(),
Expand Down

0 comments on commit bde6d97

Please sign in to comment.