stargate: Set Longs as unsigned in queries
This commit is contained in:
parent
90246140f8
commit
d80901f6d1
@ -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;
|
||||
|
||||
@ -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;
|
||||
},
|
||||
|
||||
@ -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;
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user