We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e7b435 commit 3553333Copy full SHA for 3553333
src/jormungandr/testing/thor/src/fragment/mod.rs
@@ -304,12 +304,11 @@ impl FragmentBuilder {
304
let election_key =
305
chain_vote::ElectionPublicKey::from_participants(vote_plan.committee_public_keys());
306
307
- let options = vote_plan
+ let proposal: &chain_impl_mockchain::certificate::Proposal = vote_plan
308
.proposals()
309
- .iter()
310
- .nth((proposal_index).into())
311
- .unwrap()
312
- .options();
+ .get(proposal_index as usize)
+ .unwrap();
+ let options = proposal.options();
313
314
let length = options
315
.choice_range()
0 commit comments