Skip to content

Commit

Permalink
v2.0: Add suggestion to deprecation message (backport of anza-xyz#1993)…
Browse files Browse the repository at this point in the history
… (anza-xyz#2000)

Add suggestion to deprecation message (anza-xyz#1993)

(cherry picked from commit c848645)

Co-authored-by: Tyera <tyera@anza.xyz>
  • Loading branch information
2 people authored and neutrinoks committed Jul 17, 2024
1 parent 7b85a32 commit c21cce7
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 @@ -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,
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 @@ -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(
Expand Down

0 comments on commit c21cce7

Please sign in to comment.