Skip to content

Commit 36ba6d8

Browse files
authored
fix: update sanity test for staking pallet (#625)
1 parent 1fd05f4 commit 36ba6d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pallets/parachain-staking/src/try_state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ pub(crate) fn do_try_state<T: Config>() -> Result<(), TryRuntimeError> {
4141
fn validate_candiate_pool<T: Config>() -> Result<(), TryRuntimeError> {
4242
// check if enough collators are set.
4343
ensure!(
44-
CandidatePool::<T>::count() >= T::MinCollators::get(),
44+
CandidatePool::<T>::count() >= T::MinRequiredCollators::get(),
4545
log_and_return_error_message(format!(
4646
"Insufficient collators. Collators count: {:?}. Min required collators: {:?}",
4747
CandidatePool::<T>::count(),
48-
T::MinCollators::get()
48+
T::MinRequiredCollators::get()
4949
))
5050
);
5151

0 commit comments

Comments
 (0)