From cb27c2341c313ba50a9b29f3ba0073c6255c5cfd Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 4 Jul 2024 00:29:10 -0600 Subject: [PATCH] v2.0: Add suggestion to deprecation message (backport of #1993) (#2000) Add suggestion to deprecation message (#1993) (cherry picked from commit c848645aba522fbe64dec529c95656efb0c3ce64) Co-authored-by: Tyera --- rpc-client/src/nonblocking/rpc_client.rs | 4 +++- rpc-client/src/rpc_client.rs | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/rpc-client/src/nonblocking/rpc_client.rs b/rpc-client/src/nonblocking/rpc_client.rs index 9194012224d4f0..624e4ba183a62a 100644 --- a/rpc-client/src/nonblocking/rpc_client.rs +++ b/rpc-client/src/nonblocking/rpc_client.rs @@ -2110,7 +2110,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, diff --git a/rpc-client/src/rpc_client.rs b/rpc-client/src/rpc_client.rs index a95548bf0520d6..eedb1c14ec1539 100644 --- a/rpc-client/src/rpc_client.rs +++ b/rpc-client/src/rpc_client.rs @@ -1776,7 +1776,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(