Skip to content

Commit

Permalink
Merge pull request #37 from penumbra-zone/fix-event-parsing-penumbra
Browse files Browse the repository at this point in the history
penumbra: filter out non-ibc events from event processing
  • Loading branch information
conorsch committed Jun 18, 2024
2 parents 49745aa + e056142 commit ef80465
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 ef80465

Please sign in to comment.