From e439dd5173207ab931e7b8141a8622b16605a03a Mon Sep 17 00:00:00 2001 From: emidev98 Date: Thu, 29 Feb 2024 17:57:43 +0200 Subject: [PATCH] fix: integration tests --- integration-tests/src/modules/alliance/alliance.test.ts | 8 ++++---- integration-tests/src/modules/gov/gov.test.ts | 2 +- .../src/modules/tokenfactory/tokenfactory.test.ts | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/integration-tests/src/modules/alliance/alliance.test.ts b/integration-tests/src/modules/alliance/alliance.test.ts index 35935e22..d2d6407d 100644 --- a/integration-tests/src/modules/alliance/alliance.test.ts +++ b/integration-tests/src/modules/alliance/alliance.test.ts @@ -117,7 +117,7 @@ describe("Alliance Module (https://github.com/terra-money/alliance/tree/release/ val2WalletAddress, VoteOption.VOTE_OPTION_YES )], - fee: new Fee(100_000, "0uluna"), + fee: new Fee(100_000, "100000uluna"), chainID: "test-2", }); result = await LCD.chain2.tx.broadcastSync(tx, "test-2"); @@ -231,7 +231,7 @@ describe("Alliance Module (https://github.com/terra-money/alliance/tree/release/ ibcCoin.denom, ), ], - fee: new Fee(300_000, "0uluna"), + fee: new Fee(300_000, "100000uluna"), chainID: "test-2", }); let result = await LCD.chain2.tx.broadcastSync(tx, "test-2"); @@ -261,7 +261,7 @@ describe("Alliance Module (https://github.com/terra-money/alliance/tree/release/ new Coin(ibcCoin.denom, 1000), ), ], - fee: new Fee(300_000, "0uluna"), + fee: new Fee(300_000, "100000uluna"), chainID: "test-2", }); let result = await LCD.chain2.tx.broadcastSync(tx, "test-2"); @@ -321,7 +321,7 @@ describe("Alliance Module (https://github.com/terra-money/alliance/tree/release/ val2WalletAddress, VoteOption.VOTE_OPTION_YES )], - fee: new Fee(100_000, "0uluna"), + fee: new Fee(100_000, "100000uluna"), chainID: "test-2", }); result = await LCD.chain2.tx.broadcastSync(tx, "test-2"); diff --git a/integration-tests/src/modules/gov/gov.test.ts b/integration-tests/src/modules/gov/gov.test.ts index 59344cab..f3ead755 100644 --- a/integration-tests/src/modules/gov/gov.test.ts +++ b/integration-tests/src/modules/gov/gov.test.ts @@ -174,7 +174,7 @@ describe("Governance Module (https://github.com/terra-money/cosmos-sdk/tree/rele val2WalletAddress, VoteOption.VOTE_OPTION_YES )], - fee: new Fee(100_000, "0uluna"), + fee: new Fee(100_000, "100000uluna"), chainID: "test-2", }); result = await LCD.chain2.tx.broadcastSync(tx, "test-2"); diff --git a/integration-tests/src/modules/tokenfactory/tokenfactory.test.ts b/integration-tests/src/modules/tokenfactory/tokenfactory.test.ts index 646edf50..fbb73b45 100644 --- a/integration-tests/src/modules/tokenfactory/tokenfactory.test.ts +++ b/integration-tests/src/modules/tokenfactory/tokenfactory.test.ts @@ -464,17 +464,17 @@ describe("TokenFactory Module (https://github.com/terra-money/core/tree/release/ new MsgSend( tokenFactoryWalletAddr, randomAccountAddr, - Coins.fromString("1000000000" + factoryDenom), + Coins.fromString("100" + factoryDenom), ), ], chainID: "test-1", - fee: new Fee(100_000, new Coins({ uluna: 100_000 })), + fee: new Fee(2000_000, new Coins({ uluna: 100_000 })), }); let result = await LCD.chain1.tx.broadcastSync(tx, "test-1"); await blockInclusion(); let txResult = await LCD.chain1.tx.txInfo(result.txhash, "test-1") as any; expect(txResult.raw_log) - .toStrictEqual("failed to execute message; message index: 0: {Loading CosmWasm module: sudo}: gas meter hit maximum limit"); + .toStrictEqual(`failed to execute message; message index: 0: failed to call before send hook for denom ${factoryDenom}: Custom Error val: \"Invalid Send Amount\": execute wasm contract failed`); }); }); })