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: move PacketV2 to channel/v2 proto and rename it to Packet #7357

Merged
merged 4 commits into from
Oct 1, 2024

Conversation

bznein
Copy link
Contributor

@bznein bznein commented Oct 1, 2024

Description

closes: #7347


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.

@@ -101,42 +101,6 @@ func commitV2Packet(packet Packet) []byte {
return hash[:]
}

// CommitPacketV2 returns the V2 packet commitment bytes. The commitment consists of:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These methods are not used right now and can be reimplemented in the right place (they wouldn't compile left here now) in further PRs

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could probably just move them to the v2/types directory in a new packet.go file. What do you think? Might be easier to keep them rather than digging into old/historical branches to find as we move forward.

These should ultimately change eventually anyways pending spec

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they would compile if moved as Damian says no? +1 on doing it now, seems like an easy move to do for time being.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah SGTM :) Will do! (I will still get rid of the conversion function that we don't need anymore at all)

@bznein bznein marked this pull request as ready for review October 1, 2024 11:14
Copy link
Member

@damiannolan damiannolan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One suggestion on keeping removed code in some capacity. Otherwise lgtm

@@ -101,42 +101,6 @@ func commitV2Packet(packet Packet) []byte {
return hash[:]
}

// CommitPacketV2 returns the V2 packet commitment bytes. The commitment consists of:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could probably just move them to the v2/types directory in a new packet.go file. What do you think? Might be easier to keep them rather than digging into old/historical branches to find as we move forward.

These should ultimately change eventually anyways pending spec

Copy link
Contributor

@DimitrisJim DimitrisJim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

Copy link

sonarcloud bot commented Oct 1, 2024

@bznein bznein merged commit a42e1c7 into feat/ibc-eureka Oct 1, 2024
65 checks passed
@bznein bznein deleted the bznein/7347/PacketV2 branch October 1, 2024 12:41
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