@@ -11,24 +11,6 @@ use derive_more::Display;
1111use reth_primitives_traits:: InMemorySize ;
1212use serde:: { Deserialize , Serialize } ;
1313
14- /// Identifier parameter for legacy transaction
15- #[ cfg( any( test, feature = "reth-codec" ) ) ]
16- pub const COMPACT_IDENTIFIER_LEGACY : usize = 0 ;
17-
18- /// Identifier parameter for EIP-2930 transaction
19- #[ cfg( any( test, feature = "reth-codec" ) ) ]
20- pub const COMPACT_IDENTIFIER_EIP2930 : usize = 1 ;
21-
22- /// Identifier parameter for EIP-1559 transaction
23- #[ cfg( any( test, feature = "reth-codec" ) ) ]
24- pub const COMPACT_IDENTIFIER_EIP1559 : usize = 2 ;
25-
26- /// For backwards compatibility purposes only 2 bits of the type are encoded in the identifier
27- /// parameter. In the case of a [`COMPACT_EXTENDED_IDENTIFIER_FLAG`], the full transaction type is
28- /// read from the buffer as a single byte.
29- #[ cfg( any( test, feature = "reth-codec" ) ) ]
30- pub const COMPACT_EXTENDED_IDENTIFIER_FLAG : usize = 3 ;
31-
3214/// Transaction Type
3315///
3416/// Currently being used as 2-bit type when encoding it to `reth_codecs::Compact` on
@@ -256,7 +238,7 @@ impl Decodable for TxType {
256238mod tests {
257239 use super :: * ;
258240 use alloy_primitives:: hex;
259- use reth_codecs:: Compact ;
241+ use reth_codecs:: { txtype :: * , Compact } ;
260242 use rstest:: rstest;
261243
262244 #[ rstest]
0 commit comments