We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0553b90 commit f1dac50Copy full SHA for f1dac50
pallets/parachain-staking/src/lib.rs
@@ -1044,7 +1044,6 @@ pub mod pallet {
1044
let acc = ensure_signed(origin)?;
1045
let is_active_candidate = Self::is_active_candidate(&acc);
1046
ensure!(is_active_candidate.unwrap_or(true), Error::<T>::AlreadyLeaving);
1047
- ensure!(is_active_candidate.is_none(), Error::<T>::CandidateExists);
1048
ensure!(!Self::is_delegator(&acc), Error::<T>::DelegatorExists);
1049
ensure!(
1050
stake >= T::MinCollatorCandidateStake::get(),
0 commit comments