Skip to content

Commit

Permalink
penumbra: filter out non-ibc events from event processing
Browse files Browse the repository at this point in the history
  • Loading branch information
avahowell committed Jun 10, 2024
1 parent 49745aa commit e056142
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/relayer/src/chain/penumbra/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e056142

Please sign in to comment.