Skip to content

Commit

Permalink
fix: remaining tests after bump hub to sdk v0.47 (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
anhductn2001 authored and hoangdv2429 committed Jul 25, 2024
1 parent 85223ce commit 4861886
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/frozen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
6 changes: 3 additions & 3 deletions tests/hardfork_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 4861886

Please sign in to comment.