Skip to content
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

Merged
merged 17 commits into from
Sep 10, 2024
Merged

chore: add MsgSendPacket #7254

merged 17 commits into from
Sep 10, 2024

Conversation

bznein
Copy link
Contributor

@bznein bznein commented Sep 5, 2024

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.

  • Targeted PR against the correct branch (see CONTRIBUTING.md).
  • Linked to GitHub issue with discussion and accepted design, OR link to spec that describes this work.
  • Code follows the module structure standards and Go style guide.
  • Wrote unit and integration tests.
  • Updated relevant documentation (docs/).
  • Added relevant godoc comments.
  • Provide a conventional commit message to follow the repository standards.
  • Include a descriptive changelog entry when appropriate. This may be left to the discretion of the PR reviewers. (e.g. chores should be omitted from changelog)
  • Re-reviewed Files changed in the GitHub PR explorer.
  • Review SonarCloud Report in the comment section below once CI passes.


ctx := suite.chainA.GetContext()

if tc.expPanic != "" {
suite.PanicsWithValue(tc.expPanic, func() { suite.chainA.App.GetIBCKeeper().Acknowledgement(ctx, msg) }) //nolint
Copy link
Contributor Author

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

@bznein
Copy link
Contributor Author

bznein commented Sep 5, 2024

Opening this up as "ready" just to verify that E2E pass. Not ready for review yet

@bznein bznein marked this pull request as ready for review September 5, 2024 12:25
@bznein bznein changed the title [WIP] chore: add MsgSendPacket chore: add MsgSendPacket Sep 5, 2024
//sdk.NewAttribute(types.AttributeKeyDataHex, hex.EncodeToString(packet.GetData())), TODO
// sdk.NewAttribute(types.AttributeKeyDataHex, hex.EncodeToString(packet.GetData())), TODO
Copy link
Contributor Author

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)
Copy link
Member

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) {
Copy link
Member

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

@chatton
Copy link
Contributor

chatton commented Sep 10, 2024

Will address the comments when I handle the merge conflicts from #7238

@chatton chatton merged commit 888830e into feat/packet-v2 Sep 10, 2024
66 checks passed
@chatton chatton deleted the bznein/portMsgSendPacket branch September 10, 2024 11:47
chatton added a commit that referenced this pull request Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants