Skip to content

Commit

Permalink
Add deprecated warning to get_stake_activation method (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeke08 authored Oct 14, 2024
1 parent 44c9e80 commit 56a7625
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/solana/rpc/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,7 @@ def get_stake_activation(
>>> solana_client.get_stake_activation().value.active # doctest: +SKIP
124429280
"""
warn("get_stake_activation is deprecated. Use get_account_info instead.", DeprecationWarning)
body = self._get_stake_activation_body(pubkey, epoch, commitment)
return self._provider.make_request(body, GetStakeActivationResp)

Expand Down
1 change: 1 addition & 0 deletions src/solana/rpc/async_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,7 @@ async def get_stake_activation(
>>> (await solana_client.get_stake_activation()).value.active # doctest: +SKIP
124429280
"""
warn("get_stake_activation is deprecated. Use get_account_info instead.", DeprecationWarning)
body = self._get_stake_activation_body(pubkey, epoch, commitment)
return await self._provider.make_request(body, GetStakeActivationResp)

Expand Down

0 comments on commit 56a7625

Please sign in to comment.