-
Notifications
You must be signed in to change notification settings - Fork 629
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
feat(test): adding test to verify invalid recipient address over incentivized channel #1970
feat(test): adding test to verify invalid recipient address over incentivized channel #1970
Conversation
…ccount-ibc-transaction-fails
…ccount-ibc-transaction-fails
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.
Nice work!
e2e/fee_middleware_test.go
Outdated
|
||
_, chainBRelayerUser := s.GetRelayerUsers(ctx) | ||
|
||
t.Run("register counter party payee", func(t *testing.T) { |
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.
t.Run("register counter party payee", func(t *testing.T) { | |
t.Run("register counterparty payee", func(t *testing.T) { |
We reference counterparty as one word throughout the codebase
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.
I updated other occurrences of this as well.
e2e/fee_middleware_test.go
Outdated
transferAmount := testvalues.DefaultTransferAmount(chainADenom) | ||
|
||
t.Run("send IBC transfer", func(t *testing.T) { | ||
transferMsg := transfertypes.NewMsgTransfer(channelA.PortID, channelA.ChannelID, transferAmount, chainAWallet.Bech32Address(chainA.Config().Bech32Prefix), testvalues.InvalidAddress, s.GetTimeoutHeight(ctx, chainA), 0) |
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.
transferMsg := transfertypes.NewMsgTransfer(channelA.PortID, channelA.ChannelID, transferAmount, chainAWallet.Bech32Address(chainA.Config().Bech32Prefix), testvalues.InvalidAddress, s.GetTimeoutHeight(ctx, chainA), 0) | |
transferMsg := transfertypes.NewMsgTransfer(channelA.PortID, channelA.ChannelID, transferAmount, chainAWallet.Bech32Address(chainA.Config().Bech32Prefix), testvalues.InvalidAddress, s.GetTimeoutHeight(ctx, chainB), 0) |
I was a bit worried about this not being clear, but the timeout function returns a valid timeout for the chain referenced. When sending packets, the timeout is for the chain receiving the packet. So if you send from chainA, you want the timeout from chainB
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.
ah I see, thanks for the clarification. I'll make this change.
…ccount-ibc-transaction-fails
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.
Good stuff, @chatton!
Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
…ccount-ibc-transaction-fails
Description
closes: #1967
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes