diff --git a/crates/ethereum/primitives/src/receipt.rs b/crates/ethereum/primitives/src/receipt.rs index c0a39fd33..75ae92b44 100644 --- a/crates/ethereum/primitives/src/receipt.rs +++ b/crates/ethereum/primitives/src/receipt.rs @@ -20,7 +20,6 @@ use serde::{Deserialize, Serialize}; ))] pub struct Receipt { /// Receipt type. - #[serde(with = "tx_type_serde")] pub tx_type: TxType, /// If transaction is executed successfully. /// @@ -185,25 +184,3 @@ impl InMemorySize for Receipt { } impl reth_primitives_traits::Receipt for Receipt {} - -/// TODO: Remove once is released. -mod tx_type_serde { - use alloy_primitives::{U64, U8}; - - use super::*; - - pub(crate) fn serialize(tx_type: &TxType, serializer: S) -> Result - where - S: serde::Serializer, - { - let value: U8 = (*tx_type).into(); - value.serialize(serializer) - } - - pub(crate) fn deserialize<'de, D>(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - U64::deserialize(deserializer)?.try_into().map_err(serde::de::Error::custom) - } -}