Skip to content

Commit

Permalink
refactor(forrestrie-examples): Fixed clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
severiano-sisneros committed Nov 27, 2024
1 parent 8de4087 commit b1199c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/forrestrie-examples/examples/verify-era.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ async fn main() {
// `HistoricalSummary` was introduced in Capella and the block we're proving inclusion for is in
// the post-Capella era.
// For pre-Capella states, we would use the same method, only using the historical_roots field.
let era_index = era as usize - CAPELLA_START_ERA;
let era_index = era - CAPELLA_START_ERA;

// Get the historical summary for the era from the consensus state.
let head_state = state_handle.await.unwrap();
Expand Down

0 comments on commit b1199c3

Please sign in to comment.