Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Fix workflow step count comparison (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuommaki authored Feb 12, 2024
1 parent 904225a commit a72cc2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/node/src/workflow/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl WorkflowEngine {

match workflow.steps.iter().position(|s| s.program == *prover) {
Some(proof_step_idx) => {
if workflow.steps.len() <= proof_step_idx {
if proof_step_idx <= workflow.steps.len() {
Err(WorkflowError::WorkflowStepMissing(format!(
"verifier for proof tx {}",
cur_tx.hash.clone(),
Expand Down

0 comments on commit a72cc2b

Please sign in to comment.