Skip to content

Commit

Permalink
fix ChainId::validate_length
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Nov 3, 2023
1 parent 22f5b8f commit 02fb312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ibc/src/core/ics24_host/identifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl ChainId {
pub fn validate_length(&self, min_length: u64, max_length: u64) -> Result<(), IdentifierError> {
match self.split_chain_id() {
Ok((chain_name, _)) => validate_prefix_length(chain_name, min_length, max_length),
_ => validate_identifier_length(&self.id, min_length, min_length),
_ => validate_identifier_length(&self.id, min_length, max_length),
}
}
}
Expand Down

0 comments on commit 02fb312

Please sign in to comment.