diff --git a/packages/stargate/src/modules/ibc/queries.ts b/packages/stargate/src/modules/ibc/queries.ts index 26b0d22832..1b72d5ee2a 100644 --- a/packages/stargate/src/modules/ibc/queries.ts +++ b/packages/stargate/src/modules/ibc/queries.ts @@ -87,7 +87,7 @@ export interface IbcExtension { readonly packetCommitment: ( portId: string, channelId: string, - sequence: Long, + sequence: number, ) => Promise; readonly packetCommitments: ( portId: string, @@ -261,11 +261,11 @@ export function setupIbcExtension(base: QueryClient): IbcExtension { revisionNumber: Long.fromNumber(revisionNumber, true), revisionHeight: Long.fromNumber(revisionHeight, true), }), - packetCommitment: async (portId: string, channelId: string, sequence: Long) => + packetCommitment: async (portId: string, channelId: string, sequence: number) => channelQueryService.PacketCommitment({ portId: portId, channelId: channelId, - sequence: sequence, + sequence: Long.fromNumber(sequence, true), }), packetCommitments: async (portId: string, channelId: string, paginationKey?: Uint8Array) => channelQueryService.PacketCommitments({