Skip to content

Commit

Permalink
use old querier
Browse files Browse the repository at this point in the history
  • Loading branch information
quasisamurai committed Aug 8, 2024
1 parent 005bfdf commit 9799354
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/testcases/run_in_band/interchaintx.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import { Suite, inject } from 'vitest';
import { SigningNeutronClient } from '../../helpers/signing_neutron_client';
import { SigningStargateClient } from '@cosmjs/stargate';
import {
QueryClientImpl as StakingQueryClient,
QueryDelegatorDelegationsResponse,
} from '@neutron-org/neutronjs/cosmos/staking/v1beta1/query';
import {QueryClientImpl as StakingQueryClient} from '@neutron-org/neutronjs/cosmos/staking/v1beta1/query.rpc.Query';
} from '@neutron-org/cosmjs-types/cosmos/staking/v1beta1/query';
import {
QueryChannelsResponse,
} from '@neutron-org/neutronjs/ibc/core/channel/v1/query';
Expand Down Expand Up @@ -236,7 +236,7 @@ describe('Neutron / Interchain TXs', () => {
const res1 = await getWithAttempts<QueryDelegatorDelegationsResponse>(
gaiaClient,
() =>
stakingQuerier.delegatorDelegations({
stakingQuerier.DelegatorDelegations({
delegatorAddr: icaAddress1,
}),
async (delegations) => delegations.delegationResponses?.length == 1,
Expand All @@ -255,7 +255,7 @@ describe('Neutron / Interchain TXs', () => {
const res2 = await getWithAttempts<QueryDelegatorDelegationsResponse>(
gaiaClient,
() =>
stakingQuerier.delegatorDelegations({
stakingQuerier.DelegatorDelegations({
delegatorAddr: icaAddress2,
}),
async (delegations) => delegations.delegationResponses?.length == 0,
Expand Down Expand Up @@ -306,7 +306,7 @@ describe('Neutron / Interchain TXs', () => {
const res1 = await getWithAttempts(
gaiaClient,
() =>
stakingQuerier.delegatorDelegations({ delegatorAddr: icaAddress1 }),
stakingQuerier.DelegatorDelegations({ delegatorAddr: icaAddress1 }),
async (delegations) => delegations.delegationResponses?.length == 1,
);
expect(res1.delegationResponses).toEqual([
Expand All @@ -320,7 +320,7 @@ describe('Neutron / Interchain TXs', () => {
},
},
]);
const res2 = await stakingQuerier.delegatorDelegations({
const res2 = await stakingQuerier.DelegatorDelegations({
delegatorAddr: icaAddress2,
});
expect(res2.delegationResponses).toEqual([]);
Expand Down Expand Up @@ -568,7 +568,7 @@ describe('Neutron / Interchain TXs', () => {
});
});
test('check validator state after ICA recreation', async () => {
const res = await stakingQuerier.delegatorDelegations({
const res = await stakingQuerier.DelegatorDelegations({
delegatorAddr: icaAddress1,
});
expect(res.delegationResponses).toEqual([
Expand Down

0 comments on commit 9799354

Please sign in to comment.