Skip to content

Commit

Permalink
chore: fix fullnode sync and hardfork tests (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
anhductn2001 authored Sep 19, 2024
1 parent 44fd6b9 commit 50998cc
Show file tree
Hide file tree
Showing 17 changed files with 362 additions and 250 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ replace (

require (
github.com/decentrio/e2e-testing-live v0.0.0-20240718080249-ee255229c869
github.com/decentrio/rollup-e2e-testing v0.0.0-20240916050430-2e0921df7103
github.com/decentrio/rollup-e2e-testing v0.0.0-20240919024619-0f39bd77d29b
github.com/dymensionxyz/dymension/v3 v3.1.0-rc03.0.20240911123104-4782bc4e587f
github.com/dymensionxyz/dymint v1.2.0-rc01
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -770,8 +770,8 @@ github.com/davidlazar/go-crypto v0.0.0-20200604182044-b73af7476f6c h1:pFUpOrbxDR
github.com/davidlazar/go-crypto v0.0.0-20200604182044-b73af7476f6c/go.mod h1:6UhI8N9EjYm1c2odKpFpAYeR8dsBeM7PtzQhRgxRr9U=
github.com/decentrio/e2e-testing-live v0.0.0-20240718080249-ee255229c869 h1:qWpUYGOsrSC+1Vmd2TjhbsSpntvvx9PsX3AoeMunFxc=
github.com/decentrio/e2e-testing-live v0.0.0-20240718080249-ee255229c869/go.mod h1:HZNYnPwmSxkwTPjSD5yolauc1Vx1ZzKL4FFMxTq4H5Y=
github.com/decentrio/rollup-e2e-testing v0.0.0-20240916050430-2e0921df7103 h1:Oe4PR5yoyB1ALwi5CkN38M9VKHIIxWvvMbk/BORvMpQ=
github.com/decentrio/rollup-e2e-testing v0.0.0-20240916050430-2e0921df7103/go.mod h1:QmBrZgZplhtgHRWC0Z7LC7TDsKuC8sDyQvZyXXaqw/c=
github.com/decentrio/rollup-e2e-testing v0.0.0-20240919024619-0f39bd77d29b h1:nbWJnJo1ZDXqplqgQAkBJYIFE6+9eEfHeNFpMa46sZw=
github.com/decentrio/rollup-e2e-testing v0.0.0-20240919024619-0f39bd77d29b/go.mod h1:QmBrZgZplhtgHRWC0Z7LC7TDsKuC8sDyQvZyXXaqw/c=
github.com/deckarep/golang-set v1.8.0 h1:sk9/l/KqpunDwP7pSjUg0keiOOLEnOBHzykLrsPppp4=
github.com/deckarep/golang-set v1.8.0/go.mod h1:5nI87KwE7wgsBU1F4GKAw2Qod7p5kyS383rP6+o6qqo=
github.com/deckarep/golang-set/v2 v2.1.0 h1:g47V4Or+DUdzbs8FxCCmgb6VYd+ptPAngjM6dtGktsI=
Expand Down
2 changes: 2 additions & 0 deletions tests/disconnection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ func TestDisconnection_EVM(t *testing.T) {
dymintTomlOverrides["max_idle_time"] = "3s"
dymintTomlOverrides["max_proof_time"] = "500ms"
dymintTomlOverrides["batch_submit_time"] = "50s"
dymintTomlOverrides["batch_submit_bytes"] = "1000"
dymintTomlOverrides["block_batch_max_size_bytes"] = "1000"
dymintTomlOverrides["max_batch_skew"] = "1"
dymintTomlOverrides["batch_acceptance_attempts"] = "1"
Expand Down Expand Up @@ -251,6 +252,7 @@ func TestDisconnection_Wasm(t *testing.T) {
dymintTomlOverrides["max_idle_time"] = "3s"
dymintTomlOverrides["max_proof_time"] = "500ms"
dymintTomlOverrides["batch_submit_time"] = "5s"
dymintTomlOverrides["batch_submit_bytes"] = "1000"
dymintTomlOverrides["block_batch_max_size_bytes"] = "1000"
dymintTomlOverrides["max_batch_skew"] = "1"
dymintTomlOverrides["batch_acceptance_attempts"] = "1"
Expand Down
12 changes: 6 additions & 6 deletions tests/eibc_ack_error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ func TestEIBC_AckError_Dym_EVM(t *testing.T) {
eibcEvents, err := getEIbcEventsWithinBlockRange(ctx, dymension, 10, false)
require.NoError(t, err)
fmt.Println(eibcEvents)
require.Equal(t, eibcEvents[1].PacketStatus, "PENDING")
require.Equal(t, eibcEvents[0].PacketStatus, "PENDING")

// Get the balance of dymensionUserAddr and marketMakerAddr before fulfill the demand order
dymensionUserBalance, err := dymension.GetBalance(ctx, dymensionUserAddr, dymension.Config().Denom)
Expand All @@ -379,7 +379,7 @@ func TestEIBC_AckError_Dym_EVM(t *testing.T) {
require.NoError(t, err)

// fulfill demand order
txhash, err := dymension.FullfillDemandOrder(ctx, eibcEvents[1].OrderId, marketMakerAddr, eibcFee)
txhash, err := dymension.FullfillDemandOrder(ctx, eibcEvents[0].OrderId, marketMakerAddr, eibcFee)
require.NoError(t, err)
fmt.Println(txhash)
// eibcEvent := getEibcEventFromTx(t, dymension, txhash)
Expand Down Expand Up @@ -766,10 +766,10 @@ func TestEIBC_AckError_RA_Token_EVM(t *testing.T) {
eibcEvents, err := getEIbcEventsWithinBlockRange(ctx, dymension, 10, false)
require.NoError(t, err)
fmt.Println(eibcEvents)
require.Equal(t, eibcEvents[1].PacketStatus, "PENDING")
require.Equal(t, eibcEvents[0].PacketStatus, "PENDING")

// fulfill demand order
txhash, err := dymension.FullfillDemandOrder(ctx, eibcEvents[1].OrderId, marketMakerAddr, eibcFee)
txhash, err := dymension.FullfillDemandOrder(ctx, eibcEvents[0].OrderId, marketMakerAddr, eibcFee)
require.NoError(t, err)
fmt.Println(txhash)
// eibcEvent := getEibcEventFromTx(t, dymension, txhash)
Expand Down Expand Up @@ -1220,10 +1220,10 @@ func TestEIBC_AckError_3rd_Party_Token_EVM(t *testing.T) {
eibcEvents, err := getEIbcEventsWithinBlockRange(ctx, dymension, 10, false)
require.NoError(t, err)
fmt.Println(eibcEvents)
require.Equal(t, eibcEvents[1].PacketStatus, "PENDING")
require.Equal(t, eibcEvents[0].PacketStatus, "PENDING")

// fulfill demand order
txhash, err := dymension.FullfillDemandOrder(ctx, eibcEvents[1].OrderId, marketMakerAddr, eibcFee)
txhash, err := dymension.FullfillDemandOrder(ctx, eibcEvents[0].OrderId, marketMakerAddr, eibcFee)
require.NoError(t, err)
fmt.Println(txhash)
// eibcEvent := getEibcEventFromTx(t, dymension, txhash)
Expand Down
27 changes: 5 additions & 22 deletions tests/eibc_fee_market_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,6 @@ func TestEIBCFulfillAlreadyFulfilledDemand_EVM(t *testing.T) {
fmt.Println("Balance of dymensionUserAddr after fulfilling the order:", balance)
require.True(t, balance.Equal(transferAmountWithoutFee.Add(transferAmount.Sub(bridgingFee)).Sub(bridgingFee)), fmt.Sprintf("Value mismatch. Expected %s, actual %s", transferAmountWithoutFee.Add(transferAmount.Sub(bridgingFee)).Sub(bridgingFee), balance))

// verify correct funds were deducted from market maker's wallet address
balance, err = dymension.GetBalance(ctx, marketMakerAddr, rollappIBCDenom)
require.NoError(t, err)
fmt.Println("Balance of marketMakerAddr after fulfilling the order:", balance)
expMmBalanceRollappDenom = expMmBalanceRollappDenom.Sub((transferAmount)).Add(eibcFee).Add(bridgingFee)
require.True(t, balance.Equal(expMmBalanceRollappDenom), fmt.Sprintf("Value mismatch. Expected %s, actual %s", expMmBalanceRollappDenom, balance))

// wait until packet finalization and verify funds + fee were added to market maker's wallet address
isFinalized, err = dymension.WaitUntilRollappHeightIsFinalized(ctx, rollapp1.GetChainID(), rollappHeight, 200)
require.NoError(t, err)
Expand All @@ -327,8 +320,7 @@ func TestEIBCFulfillAlreadyFulfilledDemand_EVM(t *testing.T) {
balance, err = dymension.GetBalance(ctx, marketMakerAddr, rollappIBCDenom)
require.NoError(t, err)
fmt.Println("Balance of marketMakerAddr after packet finalization:", balance)
expMmBalanceRollappDenom = expMmBalanceRollappDenom.Add(transferDataRollapp1.Amount)
expMmBalanceRollappDenom = expMmBalanceRollappDenom.Sub(bridgingFee)
expMmBalanceRollappDenom = expMmBalanceRollappDenom.Add(eibcFee)
require.True(t, balance.Equal(expMmBalanceRollappDenom), fmt.Sprintf("Value mismatch. Expected %s, actual %s", expMmBalanceRollappDenom, balance))

t.Cleanup(
Expand Down Expand Up @@ -582,8 +574,7 @@ func TestEIBCAlreadyFulfilledDemand_Wasm(t *testing.T) {

_, err = rollapp1.SendIBCTransfer(ctx, dymChannel_ra1[0].ChannelID, rollappUserAddr, transferDataRollapp1, options)
require.NoError(t, err)
rollappHeight, err = rollapp1.GetNode().Height(ctx)
require.NoError(t, err)

balance, err = dymension.GetBalance(ctx, dymensionUserAddr, rollappIBCDenom)
require.NoError(t, err)
fmt.Println("Balance of dymensionUserAddr right after sending eIBC transfer from rollapp 1 to dym hub:", balance)
Expand Down Expand Up @@ -634,26 +625,18 @@ func TestEIBCAlreadyFulfilledDemand_Wasm(t *testing.T) {
fmt.Println("Balance of dymensionUserAddr after fulfilling the order:", balance)
require.True(t, balance.Equal(transferAmountWithoutFee.Add(transferAmount.Sub(bridgingFee)).Sub(bridgingFee)), fmt.Sprintf("Value mismatch. Expected %s, actual %s", transferAmountWithoutFee.Add(transferAmount.Sub(bridgingFee)).Sub(bridgingFee), balance))

// verify correct funds were deducted from market maker's wallet address
balance, err = dymension.GetBalance(ctx, marketMakerAddr, rollappIBCDenom)
// wait until packet finalization and verify funds + fee were added to market maker's wallet address
rollappHeight, err = rollapp1.GetNode().Height(ctx)
require.NoError(t, err)
fmt.Println("Balance of marketMakerAddr after fulfilling the order:", balance)
expMmBalanceRollappDenom = expMmBalanceRollappDenom.Sub((transferAmount)).Add(eibcFee).Add(bridgingFee)
require.True(t, balance.Equal(expMmBalanceRollappDenom), fmt.Sprintf("Value mismatch. Expected %s, actual %s", expMmBalanceRollappDenom, balance))

// wait until packet finalization and verify funds + fee were added to market maker's wallet address
isFinalized, err = dymension.WaitUntilRollappHeightIsFinalized(ctx, rollapp1.GetChainID(), rollappHeight, 200)
require.NoError(t, err)
require.True(t, isFinalized)

err = testutil.WaitForBlocks(ctx, 10, dymension, rollapp1)
require.NoError(t, err)

balance, err = dymension.GetBalance(ctx, marketMakerAddr, rollappIBCDenom)
require.NoError(t, err)
fmt.Println("Balance of marketMakerAddr after packet finalization:", balance)
expMmBalanceRollappDenom = expMmBalanceRollappDenom.Add(transferDataRollapp1.Amount)
expMmBalanceRollappDenom = expMmBalanceRollappDenom.Sub(bridgingFee)
expMmBalanceRollappDenom = expMmBalanceRollappDenom.Add(eibcFee)
require.True(t, balance.Equal(expMmBalanceRollappDenom), fmt.Sprintf("Value mismatch. Expected %s, actual %s", expMmBalanceRollappDenom, balance))

t.Cleanup(
Expand Down
5 changes: 3 additions & 2 deletions tests/eibc_fee_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,6 @@ func TestEIBCFeeTooHigh_EVM(t *testing.T) {
_, err = rollapp1.SendIBCTransfer(ctx, channel.ChannelID, rollappUserAddr, transferData, options)
require.NoError(t, err)

rollappHeight, err = rollapp1.GetNode().Height(ctx)
require.NoError(t, err)
// balance right after sending IBC transfer
testutil.AssertBalance(t, ctx, rollapp1, rollappUserAddr, rollapp1.Config().Denom, walletAmount.Sub(transferData.Amount).Sub(transferData.Amount))
testutil.AssertBalance(t, ctx, dymension, dymensionUserAddr, rollappIBCDenom, transferData.Amount.Sub(bridgingFee))
Expand All @@ -208,6 +206,9 @@ func TestEIBCFeeTooHigh_EVM(t *testing.T) {
fmt.Println(eibcEvents)
require.True(t, len(eibcEvents) == 0) // verify there were no eibc events registered on the hub

rollappHeight, err = rollapp1.GetNode().Height(ctx)
require.NoError(t, err)

isFinalized, err = dymension.WaitUntilRollappHeightIsFinalized(ctx, rollapp1.GetChainID(), rollappHeight, 300)
require.NoError(t, err)
require.True(t, isFinalized)
Expand Down
23 changes: 10 additions & 13 deletions tests/eibc_feemarket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1139,17 +1139,14 @@ func TestEIBC_Fee_Market_Auto_Created_Wasm(t *testing.T) {
_, err = rollapp1.SendIBCTransfer(ctx, channsRollApp1[0].ChannelID, rollappUserAddr, transferData, ibc.TransferOptions{})
require.NoError(t, err)

rollappHeight, err = rollapp1.GetNode().Height(ctx)
require.NoError(t, err)

balance, err = dymension.GetBalance(ctx, dymensionUserAddr, rollappIBCDenom)
require.NoError(t, err)

fmt.Println("Balance of dymensionUserAddr right after sending eIBC transfer:", balance)
require.True(t, balance.Equal(zeroBal), fmt.Sprintf("Value mismatch. Expected %s, actual %s", zeroBal, balance))

// get eIbc event
eibcEvents, err := getEIbcEventsWithinBlockRange(ctx, dymension, 10, false)
eibcEvents, err := getEIbcEventsWithinBlockRange(ctx, dymension, 5, false)
require.NoError(t, err)
fmt.Println("Event:", eibcEvents[0])

Expand Down Expand Up @@ -1179,12 +1176,12 @@ func TestEIBC_Fee_Market_Auto_Created_Wasm(t *testing.T) {
require.True(t, balance.Equal(transferAmountWithoutFee.Sub(bridgingFee).Sub(eibcFee)), fmt.Sprintf("Value mismatch. Expected %s, actual %s", transferAmountWithoutFee.Sub(bridgingFee).Sub(eibcFee), balance))

// wait until packet finalization and verify funds + fee were added to market maker's wallet address
isFinalized, err = dymension.WaitUntilRollappHeightIsFinalized(ctx, rollapp1.GetChainID(), rollappHeight, 300)
rollappHeight, err = rollapp1.GetNode().Height(ctx)
require.NoError(t, err)
require.True(t, isFinalized)

err = testutil.WaitForBlocks(ctx, 10, dymension, rollapp1)
isFinalized, err = dymension.WaitUntilRollappHeightIsFinalized(ctx, rollapp1.GetChainID(), rollappHeight, 300)
require.NoError(t, err)
require.True(t, isFinalized)

balance, err = dymension.GetBalance(ctx, marketMakerAddr, rollappIBCDenom)
require.NoError(t, err)
Expand Down Expand Up @@ -1720,7 +1717,7 @@ func TestEIBCUpdateOnTimeout_Unallowed_EVM(t *testing.T) {
dymintTomlOverrides["settlement_gas_prices"] = "0adym"
dymintTomlOverrides["max_idle_time"] = "3s"
dymintTomlOverrides["max_proof_time"] = "500ms"
dymintTomlOverrides["batch_submit_time"] = "50s"
dymintTomlOverrides["batch_submit_time"] = "10s"
dymintTomlOverrides["p2p_blocksync_enabled"] = "false"

configFileOverrides["config/dymint.toml"] = dymintTomlOverrides
Expand Down Expand Up @@ -1860,7 +1857,7 @@ func TestEIBCUpdateOnTimeout_Unallowed_EVM(t *testing.T) {
require.NoError(t, err)
require.True(t, isFinalized)

err = testutil.WaitForBlocks(ctx, 50, dymension, rollapp1)
err = testutil.WaitForBlocks(ctx, 10, dymension, rollapp1)
require.NoError(t, err)

// Compose an IBC transfer and send from hub to rollapp
Expand Down Expand Up @@ -1901,7 +1898,7 @@ func TestEIBCUpdateOnTimeout_Unallowed_EVM(t *testing.T) {
require.NoError(t, err)

// get eibc event
eibcEvents, err := getEIbcEventsWithinBlockRange(ctx, dymension, 60, true)
eibcEvents, err := getEIbcEventsWithinBlockRange(ctx, dymension, 60, false)
require.NoError(t, err)
fmt.Println("Event:", eibcEvents)
require.Equal(t, eibcEvents[0].Price, fmt.Sprintf("%s%s", transferAmountWithoutFee, dymension.Config().Denom))
Expand All @@ -1913,7 +1910,7 @@ func TestEIBCUpdateOnTimeout_Unallowed_EVM(t *testing.T) {

res, err := dymension.GetTransaction(txhash)
require.NoError(t, err)
require.Equal(t, uint32(4), res.Code)
require.True(t, (res.Code == uint32(4)) || (res.Code == uint32(5)))

t.Cleanup(
func() {
Expand Down Expand Up @@ -2124,7 +2121,7 @@ func TestEIBCUpdateOnTimeout_Unallowed_Wasm(t *testing.T) {
require.NoError(t, err)

// get eibc event
eibcEvents, err := getEIbcEventsWithinBlockRange(ctx, dymension, 60, true)
eibcEvents, err := getEIbcEventsWithinBlockRange(ctx, dymension, 80, false)
require.NoError(t, err)
fmt.Println("Event:", eibcEvents)
require.Equal(t, eibcEvents[0].Price, fmt.Sprintf("%s%s", transferAmountWithoutFee, dymension.Config().Denom))
Expand All @@ -2136,7 +2133,7 @@ func TestEIBCUpdateOnTimeout_Unallowed_Wasm(t *testing.T) {

res, err := dymension.GetTransaction(txhash)
require.NoError(t, err)
require.Equal(t, uint32(4), res.Code)
require.True(t, (res.Code == uint32(4)) || (res.Code == uint32(5)))

t.Cleanup(
func() {
Expand Down
20 changes: 11 additions & 9 deletions tests/eibc_fulfillment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1697,10 +1697,19 @@ func TestEIBCFulfillment_two_rollapps_EVM(t *testing.T) {
require.True(t, balance.Equal(transferAmountWithoutFee.Sub(bridgingFee)), fmt.Sprintf("Value mismatch. Expected %s, actual %s", transferAmountWithoutFee.Sub(bridgingFee), balance))

// verify funds were deducted from market maker's wallet address

rollappHeight, err = rollapp1.GetNode().Height(ctx)
require.NoError(t, err)

// wait until the packet is finalized
isFinalized, err = dymension.WaitUntilRollappHeightIsFinalized(ctx, rollapp1.GetChainID(), rollappHeight, 300)
require.NoError(t, err)
require.True(t, isFinalized)

balance, err = dymension.GetBalance(ctx, marketMakerAddr, rollappIBCDenom)
require.NoError(t, err)
fmt.Println("Balance of marketMakerAddr after fulfilling the order:", balance)
expMmBalanceRollappDenom = expMmBalanceRollappDenom.Sub(transferAmountWithoutFee).Add(bridgingFee)
expMmBalanceRollappDenom = expMmBalanceRollappDenom.Add(eibcFee)
require.True(t, balance.Equal(expMmBalanceRollappDenom), fmt.Sprintf("Value mismatch. Expected %s, actual %s", expMmBalanceRollappDenom, balance))

balance, err = dymension.GetBalance(ctx, marketMakerAddr, rollapp2IBCDenom)
Expand Down Expand Up @@ -2093,13 +2102,6 @@ func TestEIBCFulfillment_ThirdParty_EVM(t *testing.T) {
fmt.Println("Balance of dymensionUserAddr after fulfilling the order:", balance)
require.True(t, balance.Equal(transferAmountWithoutFee.Sub(bridgingFee)), fmt.Sprintf("Value mismatch. Expected %s, actual %s", transferAmountWithoutFee.Sub(bridgingFee), balance))

// verify funds were deducted from market maker's wallet address
balance, err = dymension.GetBalance(ctx, marketMakerAddr, gaiaIBCDenom)
require.NoError(t, err)
fmt.Println("Balance of marketMakerAddr after fulfilling the order:", balance)
expMmBalance := transferAmount.Sub((transferAmountWithoutFee))
require.True(t, balance.Equal(expMmBalance), fmt.Sprintf("Value mismatch. Expected %s, actual %s", expMmBalance, balance))

// wait until packet finalization and verify funds + fee were added to market maker's wallet address
isFinalized, err = dymension.WaitUntilRollappHeightIsFinalized(ctx, rollapp1.GetChainID(), rollappHeight, 300)
require.NoError(t, err)
Expand All @@ -2111,7 +2113,7 @@ func TestEIBCFulfillment_ThirdParty_EVM(t *testing.T) {
balance, err = dymension.GetBalance(ctx, marketMakerAddr, gaiaIBCDenom)
require.NoError(t, err)
fmt.Println("Balance of marketMakerAddr after packet finalization:", balance)
expMmBalance = expMmBalance.Add(transferData.Amount).Sub(bridgingFee)
expMmBalance := transferAmount.Add(eibcFee).Sub(bridgingFee)
require.True(t, balance.Equal(expMmBalance), fmt.Sprintf("Value mismatch. Expected %s, actual %s", expMmBalance, balance))

t.Cleanup(
Expand Down
8 changes: 4 additions & 4 deletions tests/eibc_timeout_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func TestEIBCTimeoutDymToRollapp_EVM(t *testing.T) {
require.NoError(t, err)
require.True(t, isFinalized)

err = testutil.WaitForBlocks(ctx, 20, dymension, rollapp1)
err = testutil.WaitForBlocks(ctx, 50, dymension, rollapp1)
require.NoError(t, err)

// Compose an IBC transfer and send from hub to rollapp
Expand Down Expand Up @@ -218,7 +218,7 @@ func TestEIBCTimeoutDymToRollapp_EVM(t *testing.T) {
require.NoError(t, err)

// get eibc event
eibcEvents, err := getEIbcEventsWithinBlockRange(ctx, dymension, 60, true)
eibcEvents, err := getEIbcEventsWithinBlockRange(ctx, dymension, 10, false)
require.NoError(t, err)
fmt.Println("Event:", eibcEvents[0])
require.Equal(t, eibcEvents[0].Price, fmt.Sprintf("%s%s", transferAmountWithoutFee, dymension.Config().Denom))
Expand Down Expand Up @@ -569,7 +569,7 @@ func TestEIBCTimeoutFulFillDymToRollapp_EVM(t *testing.T) {
gaiaTokenDenom := transfertypes.GetPrefixedDenom(dymGaiaChan.PortID, dymGaiaChan.ChannelID, gaia.Config().Denom)
gaiaIBCDenom := transfertypes.ParseDenomTrace(gaiaTokenDenom).IBCDenom()

err = testutil.WaitForBlocks(ctx, 50, dymension, rollapp1, gaia)
err = testutil.WaitForBlocks(ctx, 50, dymension, rollapp1)
require.NoError(t, err)
testutil.AssertBalance(t, ctx, dymension, dymensionUserAddr, gaiaIBCDenom, gaiaToDymTransferData.Amount)

Expand All @@ -596,7 +596,7 @@ func TestEIBCTimeoutFulFillDymToRollapp_EVM(t *testing.T) {
require.NoError(t, err)

// get eibc event
eibcEvents, err := getEIbcEventsWithinBlockRange(ctx, dymension, 60, true)
eibcEvents, err := getEIbcEventsWithinBlockRange(ctx, dymension, 10, false)
require.NoError(t, err)
fmt.Println("Event:", eibcEvents[0])
require.Equal(t, eibcEvents[0].Price, fmt.Sprintf("%s%s", transferAmountWithoutFee, gaiaIBCDenom))
Expand Down
Loading

0 comments on commit 50998cc

Please sign in to comment.