-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ibc: prevent invalid Height from being deserialised
Change revision_height from u64 to NonZeroU64 to make invalid heights (ones where revision_height is zero) impossible to represent. This makes borsh and serde deserialisation fail when given invalid height (while in the past they would construct an invalid object).
- Loading branch information
Showing
1 changed file
with
58 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters