Skip to content

Commit

Permalink
fix new method
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry committed Aug 8, 2024
1 parent ed9d977 commit 2649c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/program/src/stake/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

Expand Down

0 comments on commit 2649c7b

Please sign in to comment.