-
Notifications
You must be signed in to change notification settings - Fork 81
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
fix(ibc-clients/tendermint): disallow empty proof-specs and empty depth range in proof-specs #1104
fix(ibc-clients/tendermint): disallow empty proof-specs and empty depth range in proof-specs #1104
Conversation
Thanks @gr4yha7 ! Can you please add some unit tests to the new |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1104 +/- ##
==========================================
+ Coverage 66.52% 66.56% +0.04%
==========================================
Files 208 208
Lines 20705 20733 +28
==========================================
+ Hits 13773 13801 +28
Misses 6932 6932 ☔ View full report in Codecov by Sentry. |
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.
You may have noticed, just highlighting that there's an implicit check as part of ICS23 here. Though, I'm still in favor of adding an explicit check in ibc-rs to prevent the creation of faulty clients.
All good, thank you both. Just requested a small fix!
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.
🙏
Thanks @gr4yha7 🙏 nice work ✨ |
…th range in proof-specs (#1104) * fix: disallow empty proof-specs and empty depth range in proof-specs * chore: add changelog entry * nits * test: add unit test * chore: use default option (none) * avoid new var * nit in changelog * rm redundant clone * propagate errors * proof depth is unsigned * use impl method --------- Co-authored-by: Ranadeep Biswas <mail@rnbguy.at> Co-authored-by: Rano | Ranadeep <ranadeep@informal.systems>
Closes: #1100
PR author checklist:
unclog
.docs/
).Reviewer checklist:
Files changed
in the GitHub PR explorer.