Skip to content

Commit

Permalink
fix: parameter names in GetTokenAccountsByOwnerApi (#1809)
Browse files Browse the repository at this point in the history
This commit renames the parameter 'program' to 'owner' across all instances within the GetTokenAccountsByOwnerApi interface. This modification corrects the name, making the API more intuitive and consistent with the expectations of the method.
  • Loading branch information
amilz authored Nov 6, 2023
1 parent b755749 commit d575f09
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/rpc-core/src/rpc-methods/getTokenAccountsByOwner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export interface GetTokenAccountsByOwnerApi {
* Returns all SPL Token accounts by token owner.
*/
getTokenAccountsByOwner(
program: Base58EncodedAddress,
owner: Base58EncodedAddress,
filter: AccountsFilter,
config: GetTokenAccountsByOwnerApiCommonConfig &
GetTokenAccountsByOwnerApiSliceableCommonConfig &
Expand All @@ -65,7 +65,7 @@ export interface GetTokenAccountsByOwnerApi {
): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedData>[]>;

getTokenAccountsByOwner(
program: Base58EncodedAddress,
owner: Base58EncodedAddress,
filter: AccountsFilter,
config: GetTokenAccountsByOwnerApiCommonConfig &
GetTokenAccountsByOwnerApiSliceableCommonConfig &
Expand All @@ -75,7 +75,7 @@ export interface GetTokenAccountsByOwnerApi {
): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>[]>;

getTokenAccountsByOwner(
program: Base58EncodedAddress,
owner: Base58EncodedAddress,
filter: AccountsFilter,
config: GetTokenAccountsByOwnerApiCommonConfig &
Readonly<{
Expand All @@ -84,7 +84,7 @@ export interface GetTokenAccountsByOwnerApi {
): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & TokenAccountInfoWithJsonData>[]>;

getTokenAccountsByOwner(
program: Base58EncodedAddress,
owner: Base58EncodedAddress,
filter: AccountsFilter,
config: GetTokenAccountsByOwnerApiCommonConfig &
GetTokenAccountsByOwnerApiSliceableCommonConfig &
Expand All @@ -94,7 +94,7 @@ export interface GetTokenAccountsByOwnerApi {
): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58EncodedData>[]>;

getTokenAccountsByOwner(
program: Base58EncodedAddress,
owner: Base58EncodedAddress,
filter: AccountsFilter,
config?: GetTokenAccountsByOwnerApiCommonConfig & GetTokenAccountsByOwnerApiSliceableCommonConfig
): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58Bytes>[]>;
Expand Down

0 comments on commit d575f09

Please sign in to comment.