From f10e3ef4248f9304b16896de2f633a265b4c9c28 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Wed, 20 Nov 2024 18:12:52 +0100 Subject: [PATCH] chore: add default for txtype (#1668) --- 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 a6f11c688ae..3918f6a2090 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,