From 2649c7bbca032c9c21c6d045136aeac5c6b331d2 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Thu, 8 Aug 2024 23:59:41 +0000 Subject: [PATCH] fix new method --- sdk/program/src/stake/state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/program/src/stake/state.rs b/sdk/program/src/stake/state.rs index bc8f5a53337831..139df906fc12b2 100644 --- a/sdk/program/src/stake/state.rs +++ b/sdk/program/src/stake/state.rs @@ -231,7 +231,7 @@ impl StakeStateV2 { pub fn delegation_ref(&self) -> Option<&Delegation> { match self { StakeStateV2::Stake(_meta, stake, _stake_flags) => Some(&stake.delegation), - _ => None, + Self::Uninitialized | Self::Initialized(_) | Self::RewardsPool => None, } }