Skip to content

Commit

Permalink
fix empty condition
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Oct 18, 2023
1 parent c781e02 commit 2d84cf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/app/src/modules/ibc/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ where
channel_end_path: &ChannelEndPath,
sequences: impl ExactSizeIterator<Item = Sequence>,
) -> Result<Vec<PacketState>, ContextError> {
let collected_paths: Vec<_> = if sequences.len() > 0 {
let collected_paths: Vec<_> = if sequences.len() == 0 {
// if sequences is empty, return all the acks
let ack_path_prefix = format!(
"acks/ports/{}/channels/{}/sequences",
Expand Down Expand Up @@ -918,7 +918,7 @@ where
channel_end_path: &ChannelEndPath,
sequences: impl ExactSizeIterator<Item = Sequence>,
) -> Result<Vec<Sequence>, ContextError> {
let collected_paths: Vec<_> = if sequences.len() > 0 {
let collected_paths: Vec<_> = if sequences.len() == 0 {
// if sequences is empty, return all the acks
let commitment_path_prefix = format!(
"commitments/ports/{}/channels/{}/sequences",
Expand Down

0 comments on commit 2d84cf7

Please sign in to comment.