Update ibc queries

This commit is contained in:
Fantastic
2022-06-10 19:56:00 +08:00
parent 06a16dea03
commit 128ee0172d
2 changed files with 4 additions and 4 deletions
@@ -127,7 +127,7 @@ describe("IbcExtension", () => {
const response = await client.ibc.channel.packetCommitment(
ibcTest.portId,
ibcTest.channelId,
Long.fromInt(ibcTest.commitment.sequence, true),
ibcTest.commitment.sequence,
);
expect(response.commitment).toEqual(ibcTest.commitment.data);
expect(response.proofHeight).toBeDefined();
+3 -3
View File
@@ -87,7 +87,7 @@ export interface IbcExtension {
readonly packetCommitment: (
portId: string,
channelId: string,
sequence: Long,
sequence: number,
) => Promise<QueryPacketCommitmentResponse>;
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({