From 350d9fe64804b1e324c3bf5fecf1816cf51159e4 Mon Sep 17 00:00:00 2001 From: Dan Cline <6798349+Rjected@users.noreply.github.com> Date: Thu, 19 Dec 2024 13:36:34 +0200 Subject: [PATCH] feat: impl From for OpTypedTransaction (#348) ## Motivation This would be nice to have since it's a variant ## Solution `impl From for OpTypedTransaction` ## PR Checklist - [ ] Added Tests - [ ] Added Documentation - [ ] Breaking changes --- crates/consensus/src/transaction/typed.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/consensus/src/transaction/typed.rs b/crates/consensus/src/transaction/typed.rs index d223f471..d720fca5 100644 --- a/crates/consensus/src/transaction/typed.rs +++ b/crates/consensus/src/transaction/typed.rs @@ -52,6 +52,12 @@ impl From for OpTypedTransaction { } } +impl From for OpTypedTransaction { + fn from(tx: TxEip7702) -> Self { + Self::Eip7702(tx) + } +} + impl From for OpTypedTransaction { fn from(tx: TxDeposit) -> Self { Self::Deposit(tx)