From 59d80d3b6567376b63cdccffbc4196ffc014dc19 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Thu, 3 Oct 2024 13:04:49 +0100 Subject: [PATCH] feat: expose block timestamp in log --- ethers-core/src/types/log.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ethers-core/src/types/log.rs b/ethers-core/src/types/log.rs index 03281f50a..6c8fd1cac 100644 --- a/ethers-core/src/types/log.rs +++ b/ethers-core/src/types/log.rs @@ -28,6 +28,11 @@ pub struct Log { #[serde(skip_serializing_if = "Option::is_none")] pub block_number: Option, + // Block timestamp + #[serde(rename = "blockTimestamp")] + #[serde(skip_serializing_if = "Option::is_none")] + pub block_timestamp: Option, + /// Transaction Hash #[serde(rename = "transactionHash")] #[serde(skip_serializing_if = "Option::is_none")]