-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imp: Implement custom JSON and Borsh deserialization for
ChainId
(#…
…1013) * Add ChainId json deserialize test * Add BorshDeserialization test * Add some debugging to ChainId deserialize impl * Change assertion to unwrap * First stab at custom Visitor and Deserialize impls * Implement custom Deserialize for ChainId * Remove unnecessary ChainId::from_str call * Add some additional assertions to test valid ChainIds * Stub out custom BorshDeserialize impl * Get custom borshDeserialize impl compiling * Add rstest test case testing invalid borsh deserialization * Add changelog entry * Cargo fmt * Incorporate some PR feedback * Remove expanded.rs file * Remove expanded.rs file * Clean up borshDeserialize impl * Add test the verifies valid borsh deserialization * Update BorshDeserialize test * test: add test_valid_borsh_ser_de_roundtrip * Clean up * nit * Move `use core::fmt` statement into serde::Deserialize impl * fix: core::fmt::Result --------- Co-authored-by: Farhad Shabani <[email protected]>
- Loading branch information
1 parent
8f21923
commit 7481311
Showing
4 changed files
with
199 additions
and
8 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
.changelog/unreleased/improvements/996-custom-chain-id-deserialization.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- `[ibc-core-host-types]` Implement custom JSON and Borsh deserialization for `ChainId` ([#996](https://github.com/cosmos/ibc-rs/pull/1013)) |
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