Skip to content

Commit

Permalink
Merge branch 'tuan/add-specs-conversion-check' of github.com:notional…
Browse files Browse the repository at this point in the history
…-labs/ibc-rs into tuan/add-specs-conversion-check
  • Loading branch information
tuantran1702 committed Apr 13, 2024
2 parents 696072e + 35bb2f0 commit 0183fcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ibc-core/ics23-commitment/types/src/specs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ impl ProofSpecs {
}
for proof_spec in &self.0 {
// A non-positive `min_depth` or `max_depth` indicates no limit on the respective bound.
// Both positive `min_depth` and `max_depth` can be specified. However, in this case,
// `max_depth` must be greater than `min_depth` to ensure a valid range.
// Both positive `min_depth` and `max_depth` can be specified. However, in that case,
// `max_depth` must be greater than or equal to `min_depth` to ensure a valid range.
if 0 < proof_spec.0.min_depth
&& 0 < proof_spec.0.max_depth
&& proof_spec.0.max_depth < proof_spec.0.min_depth
Expand Down

0 comments on commit 0183fcb

Please sign in to comment.