Skip to content

Commit

Permalink
fix: resolve issue with retrieving multiple token balances in the mai…
Browse files Browse the repository at this point in the history
…n sdk
  • Loading branch information
Ikari-Shinji-re authored and RanGojo committed Jan 20, 2025
1 parent e348971 commit 891a46f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/rango-sdk/src/services/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,13 +260,14 @@ export class RangoClient {
}

public async getMultipleTokenBalance(
multipleTokenBalanceRequest: MultipleTokenBalanceRequest,
requestBody: MultipleTokenBalanceRequest,
options?: RequestOptions
): Promise<MultipleTokenBalanceResponse> {
const axiosResponse =
await this.httpService.get<MultipleTokenBalanceResponse>(
await this.httpService.post<MultipleTokenBalanceResponse>(
`/wallets/multiple-token-balance?apiKey=${this.apiKey}`,
{ params: multipleTokenBalanceRequest, ...options }
requestBody,
{ ...options }
)
return axiosResponse.data
}
Expand Down

0 comments on commit 891a46f

Please sign in to comment.