Skip to content

Commit

Permalink
Fix docs description for getInflationRate and getInflationReward
Browse files Browse the repository at this point in the history
…methods (#86)

#### Problem
`getInflationRate` and `getInflationReward` methods have the description of `getBlockHeight`

#### Summary of Changes
Fix documentation description for `getInflationRate` and `getInflationReward` methods per their descriptions [here](https://solana.com/docs/rpc/http)
No code impacts/testing required.
  • Loading branch information
amilz authored Feb 3, 2025
1 parent 6d8b8de commit 036d5c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/rpc-api/src/getInflationRate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type GetInflationRateApiResponse = Readonly<{

export type GetInflationRateApi = {
/**
* Returns the current block height of the node
* Returns the specific inflation values for the current epoch
*/
getInflationRate(
// FIXME: https://github.com/solana-labs/solana-web3.js/issues/1389
Expand Down
2 changes: 1 addition & 1 deletion packages/rpc-api/src/getInflationReward.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type GetInflationRewardApiResponse = readonly (InflationReward | null)[];

export type GetInflationRewardApi = {
/**
* Returns the current block height of the node
* Returns the inflation / staking reward for a list of addresses for an epoch
*/
getInflationReward(addresses: Address[], config?: GetInflationRewardApiConfig): GetInflationRewardApiResponse;
};

0 comments on commit 036d5c7

Please sign in to comment.