Skip to content

Commit

Permalink
chore: correct names, skip serializing if none
Browse files Browse the repository at this point in the history
  • Loading branch information
Evalir committed Dec 9, 2024
1 parent a417902 commit 1756935
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/blob-explorers/src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ pub struct FullTransactionDetails {
/// Receiver address,
pub to: Address,
/// The category of this tx, if any.
pub cateogory: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub category: Option<String>,
/// The rollup this tx corresponds to, if any.
#[serde(skip_serializing_if = "Option::is_none")]
pub rollup: Option<String>,
/// The max fee per blob gas for EIP-4844 blob transactions.
#[serde(with = "alloy_serde::quantity")]
Expand Down Expand Up @@ -132,8 +134,10 @@ pub struct TransactionDetails {
/// The hash of the block this tx is contained in.
pub block_hash: B256,
/// The category of this tx, if any
#[serde(skip_serializing_if = "Option::is_none")]
pub category: Option<String>,
/// The rollup this tx corresponds to, if any
#[serde(skip_serializing_if = "Option::is_none")]
pub rollup: Option<String>,
/// The info about the blobs in this tx.
pub blobs: Vec<BlobInfo>,
Expand Down

0 comments on commit 1756935

Please sign in to comment.