Skip to content

Commit d575f09

Browse files
authored
fix: parameter names in GetTokenAccountsByOwnerApi (#1809)
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.
1 parent b755749 commit d575f09

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/rpc-core/src/rpc-methods/getTokenAccountsByOwner.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export interface GetTokenAccountsByOwnerApi {
5555
* Returns all SPL Token accounts by token owner.
5656
*/
5757
getTokenAccountsByOwner(
58-
program: Base58EncodedAddress,
58+
owner: Base58EncodedAddress,
5959
filter: AccountsFilter,
6060
config: GetTokenAccountsByOwnerApiCommonConfig &
6161
GetTokenAccountsByOwnerApiSliceableCommonConfig &
@@ -65,7 +65,7 @@ export interface GetTokenAccountsByOwnerApi {
6565
): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedData>[]>;
6666

6767
getTokenAccountsByOwner(
68-
program: Base58EncodedAddress,
68+
owner: Base58EncodedAddress,
6969
filter: AccountsFilter,
7070
config: GetTokenAccountsByOwnerApiCommonConfig &
7171
GetTokenAccountsByOwnerApiSliceableCommonConfig &
@@ -75,7 +75,7 @@ export interface GetTokenAccountsByOwnerApi {
7575
): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>[]>;
7676

7777
getTokenAccountsByOwner(
78-
program: Base58EncodedAddress,
78+
owner: Base58EncodedAddress,
7979
filter: AccountsFilter,
8080
config: GetTokenAccountsByOwnerApiCommonConfig &
8181
Readonly<{
@@ -84,7 +84,7 @@ export interface GetTokenAccountsByOwnerApi {
8484
): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & TokenAccountInfoWithJsonData>[]>;
8585

8686
getTokenAccountsByOwner(
87-
program: Base58EncodedAddress,
87+
owner: Base58EncodedAddress,
8888
filter: AccountsFilter,
8989
config: GetTokenAccountsByOwnerApiCommonConfig &
9090
GetTokenAccountsByOwnerApiSliceableCommonConfig &
@@ -94,7 +94,7 @@ export interface GetTokenAccountsByOwnerApi {
9494
): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58EncodedData>[]>;
9595

9696
getTokenAccountsByOwner(
97-
program: Base58EncodedAddress,
97+
owner: Base58EncodedAddress,
9898
filter: AccountsFilter,
9999
config?: GetTokenAccountsByOwnerApiCommonConfig & GetTokenAccountsByOwnerApiSliceableCommonConfig
100100
): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58Bytes>[]>;

0 commit comments

Comments
 (0)