Skip to content

Commit

Permalink
fix: return noop on fail
Browse files Browse the repository at this point in the history
  • Loading branch information
benluelo committed Apr 25, 2024
1 parent 1ff929e commit 51dd684
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/block-message/src/chain_impls/scroll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,15 @@ where

tracing::debug!(?log, "raw log");

let event = match IBCHandlerEvents::decode_log(&log.into()) {
Ok(ok) => ok,
match IBCHandlerEvents::decode_log(&log.into()) {
Ok(event) => {
mk_aggregate_event(scroll, event, event_height, tx_hash).await
}
Err(err) => {
tracing::warn!(?err, "failed to decode ibc handler event")
tracing::warn!(?err, "failed to decode ibc handler event");
QueueMsg::Noop
}
};

mk_aggregate_event(scroll, event, event_height, tx_hash).await
}
})
.collect::<Vec<_>>()
.await,
Expand Down

0 comments on commit 51dd684

Please sign in to comment.