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

Disallow empty CommitmentPrefix and CommitmentProofBytes #1761

Merged
merged 8 commits into from
Jan 17, 2022

Conversation

hu55a1n1
Copy link
Member

@hu55a1n1 hu55a1n1 commented Jan 12, 2022

Partially addresses: cosmos/ibc-rs#25

Description

Disallow empty CommitmentPrefix and CommitmentProofBytes, i.e. empty values for these types should not be constructible.


PR author checklist:

  • Added changelog entry, using unclog.
  • Added tests: integration (for Hermes) or unit/mock tests (for modules).
  • Linked to GitHub issue.
  • Updated code comments and documentation (e.g., docs/).

Reviewer checklist:

  • Reviewed Files changed in the GitHub PR explorer.
  • Manually tested (in case integration/unit/mock tests are absent).

@hu55a1n1 hu55a1n1 marked this pull request as ready for review January 13, 2022 19:25
@romac romac changed the title Disallow empty CommitmentPrefix and CommitmentProofBytes Disallow empty CommitmentPrefix and CommitmentProofBytes Jan 14, 2022
@romac romac merged commit 9edf729 into master Jan 17, 2022
@romac romac deleted the hu55a1n1/1696-disallow-empty-proof-prefix branch January 17, 2022 15:32
hu55a1n1 added a commit to hu55a1n1/hermes that referenced this pull request Sep 13, 2022
…lsystems#1761)

* Disallow empty CommitmentPrefix and CommitmentProofBytes

* Fix errors in tests

* Fix failing tests

* Fix clippy errors

* Add .changelog entry

Co-authored-by: Romain Ruetschi <romain@informal.systems>
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.

2 participants