diff --git a/solana/solana-ibc/programs/solana-ibc/src/lib.rs b/solana/solana-ibc/programs/solana-ibc/src/lib.rs index baa184b0..882d49a4 100644 --- a/solana/solana-ibc/programs/solana-ibc/src/lib.rs +++ b/solana/solana-ibc/programs/solana-ibc/src/lib.rs @@ -558,7 +558,7 @@ pub mod solana_ibc { let connection_id = ibc::ConnectionId::new(connection_id_idx.into()); // Panic if connection_id doenst exist - if storage.connections.len() >= usize::from(connection_id_idx) { + if storage.connections.len() <= usize::from(connection_id_idx) { return Err(error!(error::Error::ContextError( ibc::ContextError::ConnectionError( ibc::ConnectionError::ConnectionNotFound {