chore: relax trait bound for EthTransactions (#11571)

This commit is contained in:
Oliver
2024-10-08 14:54:22 +02:00
committed by GitHub
parent 4163835b93
commit cb431f1f5c

View File

@@ -22,8 +22,7 @@ use reth_transaction_pool::{PoolTransaction, TransactionOrigin, TransactionPool}
use crate::{FromEthApiError, FullEthApiTypes, IntoEthApiError, RpcReceipt, RpcTransaction};
use super::{
Call, EthApiSpec, EthSigner, LoadBlock, LoadFee, LoadPendingBlock, LoadReceipt, LoadState,
SpawnBlocking,
Call, EthApiSpec, EthSigner, LoadBlock, LoadPendingBlock, LoadReceipt, LoadState, SpawnBlocking,
};
/// Transaction related functions for the [`EthApiServer`](crate::EthApiServer) trait in
@@ -344,7 +343,7 @@ pub trait EthTransactions: LoadTransaction {
mut request: TransactionRequest,
) -> impl Future<Output = Result<B256, Self::Error>> + Send
where
Self: EthApiSpec + LoadBlock + LoadPendingBlock + LoadFee + Call,
Self: EthApiSpec + LoadBlock + LoadPendingBlock + Call,
{
async move {
let from = match request.from {