From d575f094f47701a4429f577e655ebd3d49e6bc8c Mon Sep 17 00:00:00 2001 From: amilz <85324096+amilz@users.noreply.github.com> Date: Mon, 6 Nov 2023 10:17:28 -0800 Subject: [PATCH] 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. --- .../src/rpc-methods/getTokenAccountsByOwner.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/rpc-core/src/rpc-methods/getTokenAccountsByOwner.ts b/packages/rpc-core/src/rpc-methods/getTokenAccountsByOwner.ts index cef250e14dba..4e2fafa66720 100644 --- a/packages/rpc-core/src/rpc-methods/getTokenAccountsByOwner.ts +++ b/packages/rpc-core/src/rpc-methods/getTokenAccountsByOwner.ts @@ -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 & @@ -65,7 +65,7 @@ export interface GetTokenAccountsByOwnerApi { ): RpcResponse[]>; getTokenAccountsByOwner( - program: Base58EncodedAddress, + owner: Base58EncodedAddress, filter: AccountsFilter, config: GetTokenAccountsByOwnerApiCommonConfig & GetTokenAccountsByOwnerApiSliceableCommonConfig & @@ -75,7 +75,7 @@ export interface GetTokenAccountsByOwnerApi { ): RpcResponse[]>; getTokenAccountsByOwner( - program: Base58EncodedAddress, + owner: Base58EncodedAddress, filter: AccountsFilter, config: GetTokenAccountsByOwnerApiCommonConfig & Readonly<{ @@ -84,7 +84,7 @@ export interface GetTokenAccountsByOwnerApi { ): RpcResponse[]>; getTokenAccountsByOwner( - program: Base58EncodedAddress, + owner: Base58EncodedAddress, filter: AccountsFilter, config: GetTokenAccountsByOwnerApiCommonConfig & GetTokenAccountsByOwnerApiSliceableCommonConfig & @@ -94,7 +94,7 @@ export interface GetTokenAccountsByOwnerApi { ): RpcResponse[]>; getTokenAccountsByOwner( - program: Base58EncodedAddress, + owner: Base58EncodedAddress, filter: AccountsFilter, config?: GetTokenAccountsByOwnerApiCommonConfig & GetTokenAccountsByOwnerApiSliceableCommonConfig ): RpcResponse[]>;