-
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
feat: VerifyNonMembership 07-tendermint implementation #1611
feat: VerifyNonMembership 07-tendermint implementation #1611
Conversation
proof []byte | ||
path []byte | ||
invalidClientID = "09-tendermint" | ||
invalidConnectionID = "connection-100" |
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.
Kinda redundant vars. Open to suggestions for improvements.
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, 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 🚀
invalidClientID = "09-tendermint" | ||
invalidConnectionID = "connection-100" | ||
invalidChannelID = "channel-800" | ||
invalidPortID = "invalid-port" |
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.
Maybe we could just remove these vars and pass the strings in directly? Given invalidClientID
and invalidConnectionID
are only used once especially.
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.
Hmm, I think I still prefer vars for readability tbh :-D
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.
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
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!
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.
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