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

feat: VerifyNonMembership 07-tendermint implementation #1611

Merged
merged 1 commit into from
Jun 30, 2022

Conversation

seantking
Copy link
Contributor

Description

closes: #1291


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 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.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

proof []byte
path []byte
invalidClientID = "09-tendermint"
invalidConnectionID = "connection-100"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Kinda redundant vars. Open to suggestions for improvements.

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.

Nice work, looks pretty clean to me!

Lots of tests, some may be redundant as I think PacketReceiptAbsence is the only thing we call VerifyNonMembership with atm, but I think its worth having these tests tbh!

LGTM 🚀

Comment on lines +484 to +487
invalidClientID = "09-tendermint"
invalidConnectionID = "connection-100"
invalidChannelID = "channel-800"
invalidPortID = "invalid-port"
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we could just remove these vars and pass the strings in directly? Given invalidClientID and invalidConnectionID are only used once especially.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, I think I still prefer vars for readability tbh :-D

Copy link
Member

Choose a reason for hiding this comment

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

Sometimes I find it easier for readability without vars tbh. Depends on the complexity of the tests.
These are probably fine. But my personal choice would be to remove the client/connection id ones

Copy link
Member

@AdityaSripal AdityaSripal left a comment

Choose a reason for hiding this comment

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

Nice work!

@seantking seantking merged commit e2bdd1f into 02-client-refactor Jun 30, 2022
@seantking seantking deleted the sean/issue#1291-verify-non-membership branch June 30, 2022 09:52
oshorefueled pushed a commit to ComposableFi/ibc-go that referenced this pull request Aug 9, 2022
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