mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: remove feature gated import (#12761)
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user