Skip to content

Commit eae38e2

Browse files
authored
fix(zkstack): Fix prover run and shell (#4422)
## What ❔ <!-- What are the changes this PR brings about? --> <!-- Example: This PR adds a PR template to the repo. --> <!-- (For bigger PRs adding more context is appreciated) --> ## Why ❔ <!-- Why are these changes done? What goal do they contribute to? What are the principles behind them? --> <!-- The `Why` has to be clear to non-Matter Labs entities running their own ZK Chain --> <!-- Example: PR templates ensure PR reviewers, observers, and future iterators are in context about the evolution of repos. --> ## Is this a breaking change? - [ ] Yes - [ ] No ## Operational changes <!-- Any config changes? Any new flags? Any changes to any scripts? --> <!-- Please add anything that non-Matter Labs entities running their own ZK Chain may need to know --> ## Checklist <!-- Check your PR fulfills the following items. --> <!-- For draft PRs check the boxes as you complete them. --> - [ ] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [ ] Tests for the changes have been added / updated. - [ ] Documentation comments have been added / updated. - [ ] Code has been formatted via `zkstack dev fmt` and `zkstack dev lint`. Signed-off-by: Danil <[email protected]>
1 parent eae4426 commit eae38e2

File tree

1 file changed

+3
-2
lines changed
  • zkstack_cli/crates/zkstack/src/commands/prover

1 file changed

+3
-2
lines changed

zkstack_cli/crates/zkstack/src/commands/prover/run.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ use crate::messages::{
1616

1717
pub(crate) async fn run(args: ProverRunArgs, shell: &Shell) -> anyhow::Result<()> {
1818
let args = args.fill_values_with_prompt()?;
19-
let chain = ZkStackConfig::current_chain(shell)?;
19+
let ecosystem = ZkStackConfig::ecosystem(shell)?;
20+
let chain = ecosystem.load_current_chain()?;
2021

2122
let path_to_ecosystem = shell.current_dir();
2223

@@ -46,7 +47,7 @@ pub(crate) async fn run(args: ProverRunArgs, shell: &Shell) -> anyhow::Result<()
4647
check_prerequisites(shell, &GPU_PREREQUISITES, false);
4748
shell.set_var(
4849
"BELLMAN_CUDA_DIR",
49-
ZkStackConfig::ecosystem(shell)?
50+
ecosystem
5051
.bellman_cuda_dir
5152
.clone()
5253
.expect(MSG_BELLMAN_CUDA_DIR_ERR),

0 commit comments

Comments
 (0)