-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[E2E-Test]: add Test_EIBC_Client_NoFundForToken_EVM #456
Conversation
821c60a
to
55f09be
Compare
tests/eibc_client_test.go
Outdated
// testutil.AssertBalance(t, ctx, rollapp1, rollappUserAddr, rollapp1.Config().Denom, walletAmount.Sub(transferData.Amount)) | ||
|
||
// wait until the packet is finalized | ||
isFinalized, err := dymension.WaitUntilRollappHeightIsFinalized(ctx, rollapp1.GetChainID(), rollappHeight, 300) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We dont need wait anymore @hungdinh82
tests/eibc_client_test.go
Outdated
require.NoError(t, err) | ||
require.True(t, isFinalized) | ||
|
||
txhash, err := dymension.GetNode().FinalizePacketsUntilHeight(ctx, dymensionUserAddr, rollapp1.GetChainID(), fmt.Sprint(rollappHeight)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not need to finalize packets too
tests/eibc_client_test.go
Outdated
require.NoError(t, err) | ||
|
||
// Minus 0.1% of transfer amount for bridge fee | ||
testutil.AssertBalance(t, ctx, dymension, dymensionUserAddr2, rollappIBCDenom, transferData.Amount.Sub(bridgingFee).Sub(eibcFee)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sub eibcFee because order didn't fulfilled
Close #430 |
tests/eibc_client_test.go
Outdated
err = testutil.WaitForBlocks(ctx, 10, dymension, rollapp1) | ||
require.NoError(t, err) | ||
|
||
err = testutil.WaitForBlocks(ctx, 10, dymension, rollapp1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove it, not need
tests/eibc_client_test.go
Outdated
err = testutil.WaitForBlocks(ctx, 10, dymension, rollapp1) | ||
require.NoError(t, err) | ||
|
||
rollappHeight, err := rollapp1.GetNode().Height(ctx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same above
tests/eibc_client_test.go
Outdated
rollappHeight, err := rollapp1.GetNode().Height(ctx) | ||
require.NoError(t, err) | ||
|
||
err = testutil.WaitForBlocks(ctx, 5, dymension, rollapp1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove too
No description provided.