diff --git a/pallets/registry/src/benchmarking.rs b/pallets/registry/src/benchmarking.rs index 67c8e34ce..625c62477 100644 --- a/pallets/registry/src/benchmarking.rs +++ b/pallets/registry/src/benchmarking.rs @@ -93,12 +93,12 @@ benchmarks! { >::set(validators.clone()); for i in 0..TOTAL_SIGNERS { - >::insert(accounts[i].clone(), &validators[i]); + >::insert(accounts[i as usize].clone(), &validators[i as usize]); } >::put(JumpStartDetails { jump_start_status: JumpStartStatus::InProgress(0), - confirmations: vec![validators[0].clone()], + confirmations: vec![validators[0].clone(), validators[0].clone()], verifying_key: None }); @@ -121,7 +121,7 @@ benchmarks! { for i in 0..TOTAL_SIGNERS { let validators = add_non_syncing_validators::(TOTAL_SIGNERS as u32, 0); >::set(validators.clone()); - >::insert(&threshold_account, &validators[i]); + >::insert(&threshold_account, &validators[i as usize]); } >::put(JumpStartDetails { jump_start_status: JumpStartStatus::InProgress(0),