Skip to content

Commit

Permalink
chore: add default for txtype (#295)
Browse files Browse the repository at this point in the history
doesn't hurt, need this because default enforced in reth for testing
  • Loading branch information
mattsse authored and refcell committed Nov 21, 2024
1 parent ac79298 commit cb150e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/consensus/src/transaction/tx_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ pub const DEPOSIT_TX_TYPE_ID: u8 = 126; // 0x7E
/// [4844]: https://eips.ethereum.org/EIPS/eip-4844
/// [deposit-spec]: https://specs.optimism.io/protocol/deposits.html
#[repr(u8)]
#[derive(Debug, Copy, Clone, Eq, PartialEq, PartialOrd, Ord, Hash, Display)]
#[derive(Debug, Copy, Clone, Eq, Default, PartialEq, PartialOrd, Ord, Hash, Display)]
pub enum OpTxType {
/// Legacy transaction type.
#[default]
#[display("legacy")]
Legacy = 0,
/// EIP-2930 transaction type.
Expand Down

0 comments on commit cb150e2

Please sign in to comment.