diff --git a/crates/relayer/src/chain/penumbra/chain.rs b/crates/relayer/src/chain/penumbra/chain.rs index 081b7dab36..30ffc29413 100644 --- a/crates/relayer/src/chain/penumbra/chain.rs +++ b/crates/relayer/src/chain/penumbra/chain.rs @@ -190,7 +190,13 @@ impl PenumbraChain { .tx_result .events .iter() - .map(|ev| IbcEventWithHeight::new(ibc_event_try_from_abci_event(ev).unwrap(), height)) + .filter_map(|ev| { + if let Ok(ibc_event) = ibc_event_try_from_abci_event(ev) { + Some(IbcEventWithHeight::new(ibc_event, height)) + } else { + None + } + }) .collect(); Ok(events)