From 039f1215d05b736f7ca23384cd12e566cd00d639 Mon Sep 17 00:00:00 2001 From: Dan Cline <6798349+Rjected@users.noreply.github.com> Date: Mon, 2 Dec 2024 16:46:54 -0500 Subject: [PATCH] chore: make `has_eip4844` generic over `SignedTransaction` (#13083) --- crates/net/eth-wire-types/src/broadcast.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/net/eth-wire-types/src/broadcast.rs b/crates/net/eth-wire-types/src/broadcast.rs index b54fd0df2db2..72a1116c3925 100644 --- a/crates/net/eth-wire-types/src/broadcast.rs +++ b/crates/net/eth-wire-types/src/broadcast.rs @@ -8,7 +8,7 @@ use alloy_rlp::{ use derive_more::{Constructor, Deref, DerefMut, From, IntoIterator}; use reth_codecs_derive::{add_arbitrary_tests, generate_tests}; use reth_primitives::TransactionSigned; -use reth_primitives_traits::SignedTransaction; +use reth_primitives_traits::{SignedTransaction, Transaction}; use std::{ collections::{HashMap, HashSet}, mem, @@ -94,7 +94,7 @@ pub struct Transactions( pub Vec, ); -impl Transactions { +impl Transactions { /// Returns `true` if the list of transactions contains any blob transactions. pub fn has_eip4844(&self) -> bool { self.0.iter().any(|tx| tx.is_eip4844())