stargate: Set Longs as unsigned in queries

This commit is contained in:
willclarktech 2021-02-04 12:47:08 +00:00
parent 90246140f8
commit d80901f6d1
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7
3 changed files with 7 additions and 7 deletions

View File

@ -104,8 +104,8 @@ export function setupDistributionExtension(base: QueryClient): DistributionExten
) => {
const response = await queryService.ValidatorSlashes({
validatorAddress: validatorAddress,
startingHeight: Long.fromNumber(startingHeight),
endingHeight: Long.fromNumber(endingHeight),
startingHeight: Long.fromNumber(startingHeight, true),
endingHeight: Long.fromNumber(endingHeight, true),
pagination: createPagination(paginationKey),
});
return response;

View File

@ -153,7 +153,7 @@ export function setupIbcExtension(base: QueryClient): IbcExtension {
const response = await channelQueryService.PacketCommitment({
portId: portId,
channelId: channelId,
sequence: Long.fromNumber(sequence),
sequence: Long.fromNumber(sequence, true),
});
return response;
},
@ -170,7 +170,7 @@ export function setupIbcExtension(base: QueryClient): IbcExtension {
const response = await channelQueryService.PacketAcknowledgement({
portId: portId,
channelId: channelId,
sequence: Long.fromNumber(sequence),
sequence: Long.fromNumber(sequence, true),
});
return response;
},
@ -190,7 +190,7 @@ export function setupIbcExtension(base: QueryClient): IbcExtension {
const response = await channelQueryService.UnreceivedPackets({
portId: portId,
channelId: channelId,
packetCommitmentSequences: packetCommitmentSequences.map((s) => Long.fromNumber(s)),
packetCommitmentSequences: packetCommitmentSequences.map((s) => Long.fromNumber(s, true)),
});
return response;
},
@ -198,7 +198,7 @@ export function setupIbcExtension(base: QueryClient): IbcExtension {
const response = await channelQueryService.UnreceivedAcks({
portId: portId,
channelId: channelId,
packetAckSequences: packetAckSequences.map((s) => Long.fromNumber(s)),
packetAckSequences: packetAckSequences.map((s) => Long.fromNumber(s, true)),
});
return response;
},

View File

@ -117,7 +117,7 @@ export function setupStakingExtension(base: QueryClient): StakingExtension {
},
historicalInfo: async (height: number) => {
const response = await queryService.HistoricalInfo({
height: Long.fromNumber(height),
height: Long.fromNumber(height, true),
});
return response;
},