Skip to content

Commit

Permalink
chore: make has_eip4844 generic over SignedTransaction (#13083)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected authored Dec 2, 2024
1 parent 2c5a1a7 commit 039f121
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/net/eth-wire-types/src/broadcast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -94,7 +94,7 @@ pub struct Transactions<T = TransactionSigned>(
pub Vec<T>,
);

impl Transactions {
impl<T: SignedTransaction> Transactions<T> {
/// 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())
Expand Down

0 comments on commit 039f121

Please sign in to comment.