Skip to content

Commit 77fda91

Browse files
fix: return back new chain creation/genesis params (#3640)
Reverts matter-labs/zksync-era#3631
1 parent a424849 commit 77fda91

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/common/src/contracts.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ use crate::cmd::Cmd;
66

77
pub fn build_l1_contracts(shell: Shell, link_to_code: PathBuf) -> anyhow::Result<()> {
88
let _dir_guard = shell.push_dir(link_to_code.join("contracts/l1-contracts"));
9+
// Do not update era-contract's lockfile to avoid dirty submodule
10+
// Note, tha the v26 contracts depend on the node_modules to be present at the time of the compilation.
11+
Cmd::new(cmd!(shell, "yarn install --frozen-lockfile")).run()?;
912
Ok(Cmd::new(cmd!(shell, "yarn build:foundry")).run()?)
1013
}
1114

@@ -22,7 +25,5 @@ pub fn build_l2_contracts(shell: Shell, link_to_code: PathBuf) -> anyhow::Result
2225

2326
pub fn build_system_contracts(shell: Shell, link_to_code: PathBuf) -> anyhow::Result<()> {
2427
let _dir_guard = shell.push_dir(link_to_code.join("contracts/system-contracts"));
25-
// Do not update era-contract's lockfile to avoid dirty submodule
26-
Cmd::new(cmd!(shell, "yarn install --frozen-lockfile")).run()?;
2728
Ok(Cmd::new(cmd!(shell, "yarn build:foundry")).run()?)
2829
}

0 commit comments

Comments
 (0)