Skip to content

Commit 3553333

Browse files
committed
fix build
1 parent 4e7b435 commit 3553333

File tree

1 file changed

+4
-5
lines changed
  • src/jormungandr/testing/thor/src/fragment

1 file changed

+4
-5
lines changed

src/jormungandr/testing/thor/src/fragment/mod.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,11 @@ impl FragmentBuilder {
304304
let election_key =
305305
chain_vote::ElectionPublicKey::from_participants(vote_plan.committee_public_keys());
306306

307-
let options = vote_plan
307+
let proposal: &chain_impl_mockchain::certificate::Proposal = vote_plan
308308
.proposals()
309-
.iter()
310-
.nth((proposal_index).into())
311-
.unwrap()
312-
.options();
309+
.get(proposal_index as usize)
310+
.unwrap();
311+
let options = proposal.options();
313312

314313
let length = options
315314
.choice_range()

0 commit comments

Comments
 (0)