Skip to content

Commit

Permalink
feat: implement tx_type for TxEip7702 (alloy-rs#1214)
Browse files Browse the repository at this point in the history
eip7702: implement tx_type for TxEip7702
  • Loading branch information
tcoratger authored Aug 29, 2024
1 parent 2c831b0 commit 6f0bfdb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/consensus/src/transaction/eip7702.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,8 @@ impl TxEip7702 {

/// Get transaction type
#[doc(alias = "transaction_type")]
#[allow(unused)]
pub(crate) fn tx_type(&self) -> TxType {
unimplemented!("not yet added to tx type enum")
pub const fn tx_type(&self) -> TxType {
TxType::Eip7702
}

/// Calculates a heuristic for the in-memory size of the [TxEip7702] transaction.
Expand Down

0 comments on commit 6f0bfdb

Please sign in to comment.