diff --git a/.changelog/unreleased/improvements/996-custom-chain-id-deserialization.md b/.changelog/unreleased/improvements/996-custom-chain-id-deserialization.md new file mode 100644 index 000000000..ad7a29ac4 --- /dev/null +++ b/.changelog/unreleased/improvements/996-custom-chain-id-deserialization.md @@ -0,0 +1 @@ +- `[ibc-core]` Implement custom JSON and Borsh deserialization for `ChainId` ([#996](https://github.com/cosmos/ibc-rs/pull/1013)) \ No newline at end of file diff --git a/ibc-core/ics24-host/types/src/identifiers/chain_id.rs b/ibc-core/ics24-host/types/src/identifiers/chain_id.rs index 1d3c5cdb5..4683ae5c4 100644 --- a/ibc-core/ics24-host/types/src/identifiers/chain_id.rs +++ b/ibc-core/ics24-host/types/src/identifiers/chain_id.rs @@ -3,7 +3,7 @@ use crate::validate::{ validate_identifier_chars, validate_identifier_length, validate_prefix_length, }; -use core::fmt::{Debug, Display, Error as FmtError, Formatter}; +use core::fmt::{self, Debug, Display, Error as FmtError, Formatter}; use core::str::FromStr; use ibc_primitives::prelude::*;