Skip to content

Commit

Permalink
chore: add default for txtype (#1668)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Nov 20, 2024
1 parent 8ceada1 commit f10e3ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/consensus/src/transaction/envelope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f10e3ef

Please sign in to comment.