From c0b9a3d6b3629ad5907a9e08501fce0871c6a0b3 Mon Sep 17 00:00:00 2001 From: Robert La Ferla Date: Thu, 8 Jun 2023 14:47:03 -0400 Subject: [PATCH] Fix max > T::MaxCandidates benchmark warning --- pallets/collator-selection/src/benchmarking.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pallets/collator-selection/src/benchmarking.rs b/pallets/collator-selection/src/benchmarking.rs index 63c9561e7dd..2e363fd6042 100644 --- a/pallets/collator-selection/src/benchmarking.rs +++ b/pallets/collator-selection/src/benchmarking.rs @@ -168,7 +168,7 @@ benchmarks! { } set_desired_candidates { - let max: u32 = 999; + let max: u32 = T::MaxCandidates::get(); let origin = T::UpdateOrigin::try_successful_origin().map_err(|_| BenchmarkError::Weightless)?; }: {