Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Apr 28, 2024
1 parent 6b33a38 commit 423f832
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ibc-clients/ics07-tendermint/src/consensus_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ impl ConsensusState {
}
}

/// Can't use Infalible because TryFrom<Error = ClientError> is required by
/// [`ConsensusStateDecoder`](ibc_core_client::context::consensus_state::ConsensusStateDecoder).
impl TryFrom<ConsensusState> for ConsensusStateType {
type Error = ClientError;
fn try_from(value: ConsensusState) -> Result<Self, Self::Error> {
Expand Down

0 comments on commit 423f832

Please sign in to comment.