From 35bb2f08e47aaf0264e57e20683856fadf87d616 Mon Sep 17 00:00:00 2001 From: Tuan Tran Date: Sat, 13 Apr 2024 15:18:56 +0700 Subject: [PATCH] Update ibc-core/ics23-commitment/types/src/specs.rs Co-authored-by: Rano | Ranadeep Signed-off-by: Tuan Tran --- ibc-core/ics23-commitment/types/src/specs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ibc-core/ics23-commitment/types/src/specs.rs b/ibc-core/ics23-commitment/types/src/specs.rs index 8bac544de..e84210fdb 100644 --- a/ibc-core/ics23-commitment/types/src/specs.rs +++ b/ibc-core/ics23-commitment/types/src/specs.rs @@ -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