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

Commit 59d80d3

Browse files
committed
feat: expose block timestamp in log
1 parent 6e2ff0e commit 59d80d3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ethers-core/src/types/log.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ pub struct Log {
2828
#[serde(skip_serializing_if = "Option::is_none")]
2929
pub block_number: Option<U64>,
3030

31+
// Block timestamp
32+
#[serde(rename = "blockTimestamp")]
33+
#[serde(skip_serializing_if = "Option::is_none")]
34+
pub block_timestamp: Option<U64>,
35+
3136
/// Transaction Hash
3237
#[serde(rename = "transactionHash")]
3338
#[serde(skip_serializing_if = "Option::is_none")]

0 commit comments

Comments
 (0)