From a65481117b0ade880b8544e0b62de12b6be686c4 Mon Sep 17 00:00:00 2001 From: HaoranYi Date: Tue, 18 Jul 2023 14:37:31 +0000 Subject: [PATCH] Add RedelegatedStakeMustFullyActivateBeforeDeactivationIsPermitted StakeError --- sdk/program/src/stake/instruction.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sdk/program/src/stake/instruction.rs b/sdk/program/src/stake/instruction.rs index 67d784c38d4a43..d3b703f5add4ff 100644 --- a/sdk/program/src/stake/instruction.rs +++ b/sdk/program/src/stake/instruction.rs @@ -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 DecodeError for StakeError {