Skip to content

Commit

Permalink
fix: migrate bundles endpoint (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
troykessler authored Oct 18, 2023
1 parent 6c48c28 commit a4586c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/sdk/src/clients/lcd-client/query/v1beta1/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class KyveRegistryLCDClient extends AbstractKyveLCDClient {
async finalizedBundle(
params: kyveQueryBundles.QueryFinalizedBundleRequest
): Promise<kyveQueryBundles.QueryFinalizedBundleResponse> {
const endpoint = `/kyve/query/v1beta1/finalized_bundle/${params.pool_id}/${params.id}`;
const endpoint = `/kyve/v1/bundles/${params.pool_id}/${params.id}`;
return await this.request(endpoint);
}

Expand All @@ -156,7 +156,7 @@ export class KyveRegistryLCDClient extends AbstractKyveLCDClient {
if (typeof params?.pagination !== "undefined") {
parameters.pagination = params.pagination;
}
const endpoint = `/kyve/query/v1beta1/finalized_bundles/${params.pool_id}`;
const endpoint = `/kyve/v1/bundles/${params.pool_id}`;
return await this.request(endpoint, parameters);
}
async currentVoteStatus(
Expand Down

0 comments on commit a4586c8

Please sign in to comment.