From 26557c1c201cc5f365634af513baeb1ad60c7bd1 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Thu, 11 Aug 2022 22:14:51 +0200 Subject: [PATCH] Simplify PageRequest generation No need to set default values --- packages/stargate/src/queryclient/utils.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/stargate/src/queryclient/utils.ts b/packages/stargate/src/queryclient/utils.ts index fa086e90..a0fb6220 100644 --- a/packages/stargate/src/queryclient/utils.ts +++ b/packages/stargate/src/queryclient/utils.ts @@ -22,14 +22,7 @@ export function toAccAddress(address: string): Uint8Array { * request the next page. */ export function createPagination(paginationKey?: Uint8Array): PageRequest | undefined { - return paginationKey - ? PageRequest.fromPartial({ - key: paginationKey, - offset: Long.UZERO, - limit: Long.UZERO, - countTotal: false, - }) - : undefined; + return paginationKey ? PageRequest.fromPartial({ key: paginationKey }) : undefined; } export interface ProtobufRpcClient {