-
Notifications
You must be signed in to change notification settings - Fork 214
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: borsh sized serialization should be fallible #5537
feat: borsh sized serialization should be fallible #5537
Conversation
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.
This is going the correct way.
But we should remove the expects as they are the same as the unwrap we replace.
I would prefer to replace them with Result<>
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.
It is so nice to see all these unwraps disappear
Description
Adds fallibility to borsh serialized size method.
Motivation and Context
Audit
How Has This Been Tested?
What process can a PR reviewer use to test or verify this change?
Breaking Changes