From bf8e6d9a042307ccdc8057d5a59da8837c001a38 Mon Sep 17 00:00:00 2001 From: Thomas Coratger Date: Thu, 29 Aug 2024 16:58:16 +0200 Subject: [PATCH] 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.