From 48618867dc0d334942bce0a264dd07b9cc919db9 Mon Sep 17 00:00:00 2001 From: ducnt131 <62016666+anhductn2001@users.noreply.github.com> Date: Tue, 23 Jul 2024 12:06:43 +0700 Subject: [PATCH] fix: remaining tests after bump hub to sdk v0.47 (#345) --- tests/frozen_test.go | 2 +- tests/hardfork_test.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/frozen_test.go b/tests/frozen_test.go index c29c0457..ff6a799f 100644 --- a/tests/frozen_test.go +++ b/tests/frozen_test.go @@ -5056,5 +5056,5 @@ func TestRollAppFreezeEibcPending_Wasm(t *testing.T) { // check balances of dymensionUserAddr (just receive the fund for the fisrt transfer) balanceOfDymUserAddr, err := dymension.GetBalance(ctx, dymensionUserAddr, rollappIbcDenom) require.NoError(t, err) - require.Equal(t, (transferAmount.Sub(bridgingFee)).MulRaw(2), balanceOfDymUserAddr) + require.Equal(t, (transferAmount.Sub(bridgingFee)), balanceOfDymUserAddr) } diff --git a/tests/hardfork_test.go b/tests/hardfork_test.go index 62ad131b..c1fc54b7 100644 --- a/tests/hardfork_test.go +++ b/tests/hardfork_test.go @@ -498,7 +498,7 @@ func TestHardFork_EVM(t *testing.T) { newRollAppIbcDenom := GetIBCDenom(channsNewRollAppDym.Counterparty.PortID, channsNewRollAppDym.Counterparty.ChannelID, newRollApp.Config().Denom) // Minus 0.1% of transfer amount for bridge fee - testutil.AssertBalance(t, ctx, dymension, dymensionUserAddr, rollappIbcDenom, transferAmount.Sub(bridgingFee)) + testutil.AssertBalance(t, ctx, dymension, dymensionUserAddr, newRollAppIbcDenom, transferAmount.Sub(bridgingFee)) // Get the IBC denom dymToNewRollappIbcDenom := GetIBCDenom(channsNewRollAppDym.PortID, channsNewRollAppDym.ChannelID, dymension.Config().Denom) @@ -1028,7 +1028,7 @@ func TestHardFork_Wasm(t *testing.T) { // Get the IBC denom newRollAppIbcDenom := GetIBCDenom(channsNewRollAppDym.Counterparty.PortID, channsNewRollAppDym.Counterparty.ChannelID, newRollApp.Config().Denom) // Minus 0.1% of transfer amount for bridge fee - testutil.AssertBalance(t, ctx, dymension, dymensionUserAddr, rollappIbcDenom, transferAmount.Sub(bridgingFee)) + testutil.AssertBalance(t, ctx, dymension, dymensionUserAddr, newRollAppIbcDenom, transferAmount.Sub(bridgingFee)) // Get the IBC denom dymToNewRollappIbcDenom := GetIBCDenom(channsNewRollAppDym.PortID, channsNewRollAppDym.ChannelID, dymension.Config().Denom) @@ -1560,7 +1560,7 @@ func TestHardForkRecoverIbcClient_EVM(t *testing.T) { newRollAppIbcDenom := GetIBCDenom(channsNewRollAppDym.Counterparty.PortID, channsNewRollAppDym.Counterparty.ChannelID, newRollApp.Config().Denom) // Minus 0.1% of transfer amount for bridge fee - testutil.AssertBalance(t, ctx, dymension, dymensionUserAddr, rollappIbcDenom, transferAmount.Sub(bridgingFee)) + testutil.AssertBalance(t, ctx, dymension, dymensionUserAddr, newRollAppIbcDenom, transferAmount.Sub(bridgingFee)) // check client before submit update client proposal clientStatus, err := dymension.GetNode().QueryClientStatus(ctx, "07-tendermint-0")