Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Add RedelegatedStakeMustFullyActivateBeforeDeactivationIsPermitted StakeError #32522

Merged
merged 1 commit into from
Jul 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sdk/program/src/stake/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ pub enum StakeError {

#[error("stake redelegation to the same vote account is not permitted")]
RedelegateToSameVoteAccount,

#[allow(dead_code)]
#[error("redelegated stake must be fully activated before deactivation")]
RedelegatedStakeMustFullyActivateBeforeDeactivationIsPermitted,
}

impl<E> DecodeError<E> for StakeError {
Expand Down