fix: emit null transaction fields (#1654)
This commit is contained in:
parent
6e7149b2a1
commit
5aac82a3d7
|
@ -21,18 +21,15 @@ pub struct Transaction {
|
|||
pub nonce: U256,
|
||||
|
||||
/// Block hash. None when pending.
|
||||
#[serde(rename = "blockHash")]
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[serde(default, rename = "blockHash")]
|
||||
pub block_hash: Option<H256>,
|
||||
|
||||
/// Block number. None when pending.
|
||||
#[serde(rename = "blockNumber")]
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[serde(default, rename = "blockNumber")]
|
||||
pub block_number: Option<U64>,
|
||||
|
||||
/// Transaction Index. None when pending.
|
||||
#[serde(rename = "transactionIndex")]
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[serde(default, rename = "transactionIndex")]
|
||||
pub transaction_index: Option<U64>,
|
||||
|
||||
/// Sender
|
||||
|
|
Loading…
Reference in New Issue