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 Nov 20, 2024
1 parent 022f6f5 commit 0959cbf
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 0959cbf

Please sign in to comment.