Skip to content

Commit

Permalink
fix benches
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseAbram committed Jul 31, 2024
1 parent 1b6c2f0 commit a75c807
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pallets/registry/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ benchmarks! {
<Validators<T>>::set(validators.clone());

for i in 0..TOTAL_SIGNERS {
<ThresholdToStash<T>>::insert(accounts[i].clone(), &validators[i]);
<ThresholdToStash<T>>::insert(accounts[i as usize].clone(), &validators[i as usize]);
}

<JumpStartProgress<T>>::put(JumpStartDetails {
jump_start_status: JumpStartStatus::InProgress(0),
confirmations: vec![validators[0].clone()],
confirmations: vec![validators[0].clone(), validators[0].clone()],
verifying_key: None
});

Expand All @@ -121,7 +121,7 @@ benchmarks! {
for i in 0..TOTAL_SIGNERS {
let validators = add_non_syncing_validators::<T>(TOTAL_SIGNERS as u32, 0);
<Validators<T>>::set(validators.clone());
<ThresholdToStash<T>>::insert(&threshold_account, &validators[i]);
<ThresholdToStash<T>>::insert(&threshold_account, &validators[i as usize]);
}
<JumpStartProgress<T>>::put(JumpStartDetails {
jump_start_status: JumpStartStatus::InProgress(0),
Expand Down

0 comments on commit a75c807

Please sign in to comment.