-
Notifications
You must be signed in to change notification settings - Fork 93
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
Add borsh derive for MsgTransfer
#845
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #845 +/- ##
==========================================
+ Coverage 71.47% 71.55% +0.08%
==========================================
Files 124 124
Lines 14983 15044 +61
==========================================
+ Hits 10709 10765 +56
- Misses 4274 4279 +5
☔ View full report in Codecov by Sentry. |
if bytes_read != 32 { | ||
return Err(borsh::maybestd::io::Error::new( | ||
borsh::maybestd::io::ErrorKind::InvalidInput, | ||
format!("Expected to read 32 bytes, read {bytes_read}"), | ||
)); | ||
} |
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.
Since the `buf`` is of fixed 32 size, would this error ever occur?
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.
Yes, if somehow we read less than 32 bytes
* add borsh derive for `MsgTransfer` * changelog
No description provided.