Skip to content

Commit c5cd431

Browse files
committed
comment on out-of-bound exception check
Signed-off-by: onur-ozkan <[email protected]>
1 parent ffc0a02 commit c5cd431

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mm2src/coins/tendermint/tendermint_tx_history_v2.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -496,8 +496,9 @@ where
496496
let mut transfer_details_list: Vec<TransferDetails> = vec![];
497497

498498
for i in 0..tx_events.len() {
499+
// Avoid out-of-bounds exceptions after removing HTLC and IBC elements below.
499500
if i >= tx_events.len() {
500-
continue;
501+
break;
501502
}
502503

503504
let event = tx_events[i];

0 commit comments

Comments
 (0)