-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sov-db): serialize SlotByNumber, EventByNumber as big-endian
The big-endian fix for u64_wrapper! wasn't applied to all relevant types. I've made the following changes: * Renamed define_table_with_u64_wrapper_keys -> define_table_with_seek_key_codec to not be u64_wrapper! -specific. * I replaced the u64_wrapper! specific logic inside said macro to use * big-endian bincode instead, in preparation for using it for different and more complex types. Not yet used for anything other than u64_wrapper!. * I removed the blanked implementation of SeekKeyEncoder for all KeyEncoder's, so that implementors have to opt-in, providing a fail-safe. In the future we'll explore better type safety mechanisms.
- Loading branch information
Showing
3 changed files
with
40 additions
and
22 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
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
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