Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
prajwolrg committed Jan 29, 2025
1 parent 0c2e551 commit 768605c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/consensus-logic/src/duty/extractor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ fn extract_batch_duties(
let l2_range = (prev_batch_info.l2_range.1 + 1, tip_height);
let current_chain_state = chs_db
.get_toplevel_state(tip_height)?
.ok_or(Error::MissingIdxChainstate(0))?;
.ok_or(Error::MissingIdxChainstate(tip_height))?;
let current_chain_state_root = current_chain_state.compute_state_root();
let l2_transition = (prev_transition.l2_transition.1, current_chain_state_root);

Expand Down

0 comments on commit 768605c

Please sign in to comment.