Skip to content

Commit

Permalink
v1.18: Add suggestion to deprecation message (backport of #1993) (#1999)
Browse files Browse the repository at this point in the history
Add suggestion to deprecation message (#1993)

(cherry picked from commit c848645)

Co-authored-by: Tyera <[email protected]>
  • Loading branch information
mergify[bot] and CriesofCarrots authored Jul 4, 2024
1 parent d48afb8 commit 64732b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion rpc-client/src/nonblocking/rpc_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2152,7 +2152,9 @@ impl RpcClient {
/// ```
#[deprecated(
since = "1.18.18",
note = "Do not use; getStakeActivation is deprecated on the JSON-RPC server"
note = "Do not use; getStakeActivation is deprecated on the JSON-RPC server. Please use \
the stake account and StakeHistory sysvar to call \
`Delegation::stake_activating_and_deactivating()` instead"
)]
pub async fn get_stake_activation(
&self,
Expand Down
4 changes: 3 additions & 1 deletion rpc-client/src/rpc_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1790,7 +1790,9 @@ impl RpcClient {
/// ```
#[deprecated(
since = "1.18.18",
note = "Do not use; getStakeActivation is deprecated on the JSON-RPC server"
note = "Do not use; getStakeActivation is deprecated on the JSON-RPC server. Please use \
the stake account and StakeHistory sysvar to call \
`Delegation::stake_activating_and_deactivating()` instead"
)]
#[allow(deprecated)]
pub fn get_stake_activation(
Expand Down

0 comments on commit 64732b9

Please sign in to comment.