Skip to content

Commit

Permalink
Temporary build l1 contracts for server support
Browse files Browse the repository at this point in the history
Signed-off-by: Danil <deniallugo@gmail.com>
  • Loading branch information
Deniallugo committed May 22, 2024
1 parent 07cc746 commit 8f5a2d7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions zk_toolbox/crates/zk_inception/src/commands/ecosystem/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ fn init(
let spinner = Spinner::new("Installing and building dependencies...");
install_yarn_dependencies(shell, &ecosystem_config.link_to_code)?;
build_system_contracts(shell, &ecosystem_config.link_to_code)?;
build_l1_contracts(shell, &ecosystem_config.link_to_code)?;
spinner.finish();

let contracts = deploy_ecosystem(
Expand Down Expand Up @@ -322,3 +323,9 @@ fn build_system_contracts(shell: &Shell, link_to_code: &Path) -> anyhow::Result<
let _dir_guard = shell.push_dir(link_to_code.join("contracts"));
Cmd::new(cmd!(shell, "yarn sc build")).run()
}

// TODO remove it and use proper paths in constants
fn build_l1_contracts(shell: &Shell, link_to_code: &Path) -> anyhow::Result<()> {
let _dir_guard = shell.push_dir(link_to_code.join("contracts"));
Cmd::new(cmd!(shell, "yarn l1 build")).run()
}

0 comments on commit 8f5a2d7

Please sign in to comment.