Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
feat: expose block timestamp in log
Browse files Browse the repository at this point in the history
  • Loading branch information
joshstevens19 committed Oct 3, 2024
1 parent 6e2ff0e commit 59d80d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ethers-core/src/types/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ pub struct Log {
#[serde(skip_serializing_if = "Option::is_none")]
pub block_number: Option<U64>,

// Block timestamp
#[serde(rename = "blockTimestamp")]
#[serde(skip_serializing_if = "Option::is_none")]
pub block_timestamp: Option<U64>,

/// Transaction Hash
#[serde(rename = "transactionHash")]
#[serde(skip_serializing_if = "Option::is_none")]
Expand Down

0 comments on commit 59d80d3

Please sign in to comment.