Skip to content

Commit

Permalink
fix: adds logging for block revert event (#273)
Browse files Browse the repository at this point in the history
* fix: adds logging for block revert event

* fix: return none
  • Loading branch information
montekki committed Nov 3, 2023
1 parent dac8c3f commit b1eec8d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion watcher/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,10 @@ where
Ok(None)
}
}
BlockEvent::BlocksRevert { .. } => todo!(),
BlockEvent::BlocksRevert { .. } => {
tracing::error!("Received a blocks revert event: {event:?}");
Ok(None)
}
BlockEvent::L2ToL1Events { events } => Ok(Some(BlockRangesParams::L2ToL1Events { events })),
}
}
Expand Down

0 comments on commit b1eec8d

Please sign in to comment.