From 6f0bfdb3386829a6bb4e5732730f138ddc201353 Mon Sep 17 00:00:00 2001 From: Thomas Coratger <60488569+tcoratger@users.noreply.github.com> Date: Thu, 29 Aug 2024 08:34:18 -0700 Subject: [PATCH] feat: implement `tx_type` for `TxEip7702` (#1214) eip7702: implement tx_type for TxEip7702 --- crates/consensus/src/transaction/eip7702.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/consensus/src/transaction/eip7702.rs b/crates/consensus/src/transaction/eip7702.rs index c34a0471810..bd667082687 100644 --- a/crates/consensus/src/transaction/eip7702.rs +++ b/crates/consensus/src/transaction/eip7702.rs @@ -250,9 +250,8 @@ impl TxEip7702 { /// Get transaction type #[doc(alias = "transaction_type")] - #[allow(unused)] - pub(crate) fn tx_type(&self) -> TxType { - unimplemented!("not yet added to tx type enum") + pub const fn tx_type(&self) -> TxType { + TxType::Eip7702 } /// Calculates a heuristic for the in-memory size of the [TxEip7702] transaction.