diff --git a/pallets/parameters/src/benchmarking.rs b/pallets/parameters/src/benchmarking.rs index a0ff82bc1..6359bc1ce 100644 --- a/pallets/parameters/src/benchmarking.rs +++ b/pallets/parameters/src/benchmarking.rs @@ -56,7 +56,18 @@ benchmarks! { change_signers_info { let origin = T::UpdateOrigin::try_successful_origin().unwrap(); pallet_session::CurrentIndex::::put(1); - let signer_info = SignersSize { total_signers: 5, threshold: 3, last_session_change: 1 }; + + let SignersSize { + threshold: old_threshold, + total_signers: old_total_signers, + last_session_change: old_last_session_change, + } = SignersInfo::::get(); + + let signer_info = SignersSize { + total_signers: old_total_signers + 1, + threshold: old_threshold + 1, + last_session_change: old_last_session_change + 1, + }; }: { assert_ok!( >::change_signers_info(origin, signer_info.total_signers, signer_info.threshold)