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 e6a54fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ethers-core/src/types/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ pub struct Log {
#[serde(skip_serializing_if = "Option::is_none")]
pub block_number: Option<U64>,

#[serde(rename = "blockNumber")]
#[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 e6a54fb

Please sign in to comment.