-
Notifications
You must be signed in to change notification settings - Fork 94
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
Improve error handling and string conversion in IBC crates. #726
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #726 +/- ##
==========================================
- Coverage 72.33% 72.33% -0.01%
==========================================
Files 116 116
Lines 15529 15546 +17
==========================================
+ Hits 11233 11245 +12
- Misses 4296 4301 +5
☔ 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.
Thank you for the PR, this is greatly appreciated! Left a few things to adjust
Can you also add a changelog entry? |
…ror messages and improve UTF-8 compliance. Update try_from convenience methods to return error messages for incorrect data ranges.
Signed-off-by: Davirain <[email protected]>
Signed-off-by: Davirain <[email protected]>
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.
🙏
* Improve error handling and string conversion in IBC crates. * Refactor crate to disallow usage of unwrap(), add more informative error messages and improve UTF-8 compliance. Update try_from convenience methods to return error messages for incorrect data ranges. * Refactor client_state.rs: Fix tests to use height.min() in expect. * Refactor host block retrieval in MockContext struct. --------- Signed-off-by: Davirain <[email protected]>
Closes: #655
Description
PR author checklist:
unclog
.docs/
).Reviewer checklist:
Files changed
in the GitHub PR explorer.