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

Commit

Permalink
Fix workflow steps indexing condition (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuommaki authored Mar 18, 2024
1 parent 385474e commit ccb2b4a
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 @@ -82,7 +82,7 @@ impl WorkflowEngine {

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

0 comments on commit ccb2b4a

Please sign in to comment.