Skip to content

Commit

Permalink
feat: impl From<TxEip7702> for OpTypedTransaction (#348)
Browse files Browse the repository at this point in the history
## Motivation

This would be nice to have since it's a variant

## Solution

`impl From<TxEip7702> for OpTypedTransaction`

## PR Checklist

- [ ] Added Tests
- [ ] Added Documentation
- [ ] Breaking changes
  • Loading branch information
Rjected authored Dec 19, 2024
1 parent c097c01 commit 350d9fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/consensus/src/transaction/typed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ impl From<TxEip1559> for OpTypedTransaction {
}
}

impl From<TxEip7702> for OpTypedTransaction {
fn from(tx: TxEip7702) -> Self {
Self::Eip7702(tx)
}
}

impl From<TxDeposit> for OpTypedTransaction {
fn from(tx: TxDeposit) -> Self {
Self::Deposit(tx)
Expand Down

0 comments on commit 350d9fe

Please sign in to comment.