From d14679e7e2de221b3c4bc9dc5848f35d893bee4c Mon Sep 17 00:00:00 2001 From: Albert Andrejev Date: Tue, 1 Aug 2023 02:05:09 +0300 Subject: [PATCH] fixes --- src/testcases/run_in_band/interchaintx.test.ts | 8 ++++---- src/testcases/run_in_band/tge.auction.test.ts | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/testcases/run_in_band/interchaintx.test.ts b/src/testcases/run_in_band/interchaintx.test.ts index ebaf3db7..9b3a7c07 100644 --- a/src/testcases/run_in_band/interchaintx.test.ts +++ b/src/testcases/run_in_band/interchaintx.test.ts @@ -563,7 +563,7 @@ describe('Neutron / Interchain TXs', () => { ); // wait until sudo is called and processed and failure is recorder - await getWithAttempts( + await wait.getWithAttempts( neutronChain.blockWaiter, async () => neutronChain.queryAckFailures(contractAddress), async (data) => data.failures.length == 1, @@ -606,7 +606,7 @@ describe('Neutron / Interchain TXs', () => { ); // wait until sudo is called and processed and failure is recorder - await getWithAttempts( + await wait.getWithAttempts( neutronChain.blockWaiter, async () => neutronChain.queryAckFailures(contractAddress), async (data) => data.failures.length == 2, @@ -649,7 +649,7 @@ describe('Neutron / Interchain TXs', () => { ); // wait until sudo is called and processed and failure is recorder - await getWithAttempts( + await wait.getWithAttempts( neutronChain.blockWaiter, async () => neutronChain.queryAckFailures(contractAddress), async (data) => data.failures.length == 3, @@ -693,7 +693,7 @@ describe('Neutron / Interchain TXs', () => { ); // wait until sudo is called and processed and failure is recorder - await getWithAttempts( + await wait.getWithAttempts( neutronChain.blockWaiter, async () => neutronChain.queryAckFailures(contractAddress), async (data) => data.failures.length == 4, diff --git a/src/testcases/run_in_band/tge.auction.test.ts b/src/testcases/run_in_band/tge.auction.test.ts index 8b32e0b7..7313121b 100644 --- a/src/testcases/run_in_band/tge.auction.test.ts +++ b/src/testcases/run_in_band/tge.auction.test.ts @@ -8,6 +8,7 @@ import { NEUTRON_DENOM, TestStateLocalCosmosTestNet, tge, + tokenfactory, types, wait, } from 'neutronjs'; @@ -136,6 +137,7 @@ describe('Neutron / TGE / Auction', () => { beforeAll(async () => { cosmosWrapper.registerCodecs(); + tokenfactory.registerCodecs(); testState = new TestStateLocalCosmosTestNet(config); await testState.init(); @@ -244,6 +246,7 @@ describe('Neutron / TGE / Auction', () => { tgeMain.times.airdropVestingStart = tge.getTimestamp(300); await tgeMain.deployPreAuction(); }); + it('should not be able to set token info by stranger', async () => { await expect( tge.executeVestingLpSetVestingToken(