diff --git a/ghost-crab/src/event_handler.rs b/ghost-crab/src/event_handler.rs index bd2f75b..1a9bab6 100644 --- a/ghost-crab/src/event_handler.rs +++ b/ghost-crab/src/event_handler.rs @@ -21,11 +21,11 @@ pub struct EventContext { } impl EventContext { - pub async fn block(&self) -> Result, TransportError> { + pub async fn block(&self, hydrate: bool) -> Result, TransportError> { match self.log.block_number { Some(block_number) => { self.provider - .get_block_by_number(BlockNumberOrTag::Number(block_number), false) + .get_block_by_number(BlockNumberOrTag::Number(block_number), hydrate) .await } None => Err(TransportError::local_usage_str("Error occurred while fetching the current block number within an EventHandler. The log.block_number value is None.")),