From 2f0c3f153fc40d81677aecaa9b8c91d9e5234890 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Wed, 20 Nov 2024 15:58:48 +0100 Subject: [PATCH] chore: add default for txtype --- crates/consensus/src/transaction/envelope.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/consensus/src/transaction/envelope.rs b/crates/consensus/src/transaction/envelope.rs index d6a5323503e..43b59814237 100644 --- a/crates/consensus/src/transaction/envelope.rs +++ b/crates/consensus/src/transaction/envelope.rs @@ -22,10 +22,11 @@ use core::fmt; /// [4844]: https://eips.ethereum.org/EIPS/eip-4844 /// [7702]: https://eips.ethereum.org/EIPS/eip-7702 #[repr(u8)] -#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] +#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)] #[doc(alias = "TransactionType")] pub enum TxType { /// Legacy transaction type. + #[default] Legacy = 0, /// EIP-2930 transaction type. Eip2930 = 1,