-
Notifications
You must be signed in to change notification settings - Fork 586
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
chore: add MsgSendPacket #7254
chore: add MsgSendPacket #7254
Conversation
|
||
ctx := suite.chainA.GetContext() | ||
|
||
if tc.expPanic != "" { | ||
suite.PanicsWithValue(tc.expPanic, func() { suite.chainA.App.GetIBCKeeper().Acknowledgement(ctx, msg) }) //nolint |
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.
The linter here complains that the error returned is not checked. But we want the function to panic so there's no reason to complicate the code by checking for an error
Opening this up as "ready" just to verify that E2E pass. Not ready for review yet |
//sdk.NewAttribute(types.AttributeKeyDataHex, hex.EncodeToString(packet.GetData())), TODO | ||
// sdk.NewAttribute(types.AttributeKeyDataHex, hex.EncodeToString(packet.GetData())), TODO |
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.
A lot of changes like these unfortunately caused by the linter :(
@@ -86,5 +87,17 @@ func (k *Keeper) LookupModuleByPort(ctx sdk.Context, portID string) (string, *ca | |||
// Route returns a IBCModule for a given module, and a boolean indicating | |||
// whether or not the route is present. | |||
func (k *Keeper) Route(module string) (types.IBCModule, bool) { | |||
return k.Router.GetRoute(module) | |||
routes, ok := k.Router.GetRoute(module) |
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.
nit: routes
-> route
?
} | ||
|
||
for _, prefix := range k.Router.Keys() { | ||
if strings.Contains(module, prefix) { |
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 think we should use HasPrefix
here rather than doing a contains
Will address the comments when I handle the merge conflicts from #7238 |
Description
Huge diff but:
Almost 900 added lines are auto-generated proto stuff
a couple of files have been brought in by #7238
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/
).godoc
comments.Files changed
in the GitHub PR explorer.SonarCloud Report
in the comment section below once CI passes.