diff --git a/src/evm/transaction.rs b/src/evm/transaction.rs index db82f5a21..4e22f9f41 100644 --- a/src/evm/transaction.rs +++ b/src/evm/transaction.rs @@ -124,12 +124,13 @@ impl FromRecoveredTx for HlTxEnv { impl FromTxWithEncoded for HlTxEnv { fn from_encoded_tx(tx: &TransactionSigned, sender: Address, _encoded: Bytes) -> Self { + use reth_primitives::Transaction; let base = match tx.clone().into_inner().into_typed_transaction() { - reth_primitives::Transaction::Legacy(tx) => TxEnv::from_recovered_tx(&tx, sender), - reth_primitives::Transaction::Eip2930(tx) => TxEnv::from_recovered_tx(&tx, sender), - reth_primitives::Transaction::Eip1559(tx) => TxEnv::from_recovered_tx(&tx, sender), - reth_primitives::Transaction::Eip4844(tx) => TxEnv::from_recovered_tx(&tx, sender), - reth_primitives::Transaction::Eip7702(tx) => TxEnv::from_recovered_tx(&tx, sender), + Transaction::Legacy(tx) => TxEnv::from_recovered_tx(&tx, sender), + Transaction::Eip2930(tx) => TxEnv::from_recovered_tx(&tx, sender), + Transaction::Eip1559(tx) => TxEnv::from_recovered_tx(&tx, sender), + Transaction::Eip4844(tx) => TxEnv::from_recovered_tx(&tx, sender), + Transaction::Eip7702(tx) => TxEnv::from_recovered_tx(&tx, sender), }; Self { base }