diff --git a/pallets/collator-selection/src/benchmarking.rs b/pallets/collator-selection/src/benchmarking.rs index f5467fbd09a..2f4043092ae 100644 --- a/pallets/collator-selection/src/benchmarking.rs +++ b/pallets/collator-selection/src/benchmarking.rs @@ -147,7 +147,7 @@ benchmarks! { // worse case is when we have all the max-candidate slots filled except one, and we fill that // one. register_as_candidate { - let c in 1 .. T::MaxCandidates::get(); + let c in 1 .. T::MaxCandidates::get() - 1; >::put(T::Currency::minimum_balance()); >::put(c + 1);