Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Dec 24, 2024
1 parent 2f1042d commit 404a1d3
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions crates/optimism/primitives/src/transaction/signed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -654,21 +654,7 @@ pub mod serde_bincode_compat {
}
}

/// Bincode-compatible [`super::TransactionSigned`] serde implementation.
///
/// Intended to use with the [`serde_with::serde_as`] macro in the following way:
/// ```rust
/// use reth_primitives::{serde_bincode_compat, TransactionSigned};
/// use serde::{Deserialize, Serialize};
/// use serde_with::serde_as;
///
/// #[serde_as]
/// #[derive(Serialize, Deserialize)]
/// struct Data {
/// #[serde_as(as = "serde_bincode_compat::transaction::TransactionSigned")]
/// transaction: TransactionSigned,
/// }
/// ```
/// Bincode-compatible [`super::OpTransactionSigned`] serde implementation.
#[derive(Debug, Serialize, Deserialize)]
pub struct OpTransactionSigned<'a> {
hash: TxHash,
Expand Down

0 comments on commit 404a1d3

Please sign in to comment.