chore: remove feature gated import (#12761)

This commit is contained in:
Matthias Seitz
2024-11-21 23:56:18 +01:00
committed by GitHub
parent 1061e46816
commit 6f6fb005ab

View File

@ -1,7 +1,5 @@
//! Transaction types.
#[cfg(any(test, feature = "reth-codec"))]
use alloy_consensus::constants::{EIP4844_TX_TYPE_ID, EIP7702_TX_TYPE_ID};
use alloy_consensus::{
transaction::RlpEcdsaTx, SignableTransaction, Transaction as _, TxEip1559, TxEip2930,
TxEip4844, TxEip7702, TxLegacy,
@ -606,11 +604,11 @@ impl reth_codecs::Compact for Transaction {
// reading the full 8 bits (single byte) and match on this transaction type.
let identifier = buf.get_u8();
match identifier {
EIP4844_TX_TYPE_ID => {
alloy_consensus::constants::EIP4844_TX_TYPE_ID => {
let (tx, buf) = TxEip4844::from_compact(buf, buf.len());
(Self::Eip4844(tx), buf)
}
EIP7702_TX_TYPE_ID => {
alloy_consensus::constants::EIP7702_TX_TYPE_ID => {
let (tx, buf) = TxEip7702::from_compact(buf, buf.len());
(Self::Eip7702(tx), buf)
}