diff --git a/crates/starknet_batcher_types/src/communication.rs b/crates/starknet_batcher_types/src/communication.rs index f92b699b2b..436ad3e13b 100644 --- a/crates/starknet_batcher_types/src/communication.rs +++ b/crates/starknet_batcher_types/src/communication.rs @@ -100,9 +100,9 @@ pub enum BatcherClientError { } #[async_trait] -impl BatcherClient for T +impl BatcherClient for ComponentClientType where - T: Send + Sync + ComponentClient, + ComponentClientType: Send + Sync + ComponentClient, { async fn build_proposal(&self, input: BuildProposalInput) -> BatcherClientResult<()> { let request = BatcherRequest::BuildProposal(input); diff --git a/crates/starknet_gateway_types/src/communication.rs b/crates/starknet_gateway_types/src/communication.rs index d0a56e3f28..682629b3fc 100644 --- a/crates/starknet_gateway_types/src/communication.rs +++ b/crates/starknet_gateway_types/src/communication.rs @@ -55,9 +55,9 @@ pub enum GatewayClientError { } #[async_trait] -impl GatewayClient for T +impl GatewayClient for ComponentClientType where - T: Send + Sync + ComponentClient, + ComponentClientType: Send + Sync + ComponentClient, { #[instrument(skip(self))] async fn add_tx(&self, gateway_input: GatewayInput) -> GatewayClientResult { diff --git a/crates/starknet_mempool_p2p_types/src/communication.rs b/crates/starknet_mempool_p2p_types/src/communication.rs index d376f77364..09878fe764 100644 --- a/crates/starknet_mempool_p2p_types/src/communication.rs +++ b/crates/starknet_mempool_p2p_types/src/communication.rs @@ -66,9 +66,10 @@ pub enum MempoolP2pPropagatorClientError { } #[async_trait] -impl MempoolP2pPropagatorClient for T +impl MempoolP2pPropagatorClient for ComponentClientType where - T: Send + Sync + ComponentClient, + ComponentClientType: + Send + Sync + ComponentClient, { async fn add_transaction( &self, diff --git a/crates/starknet_mempool_types/src/communication.rs b/crates/starknet_mempool_types/src/communication.rs index 880ad50676..061198e3ec 100644 --- a/crates/starknet_mempool_types/src/communication.rs +++ b/crates/starknet_mempool_types/src/communication.rs @@ -70,9 +70,9 @@ pub enum MempoolClientError { } #[async_trait] -impl MempoolClient for T +impl MempoolClient for ComponentClientType where - T: Send + Sync + ComponentClient, + ComponentClientType: Send + Sync + ComponentClient, { async fn add_tx(&self, args: AddTransactionArgsWrapper) -> MempoolClientResult<()> { let request = MempoolRequest::AddTransaction(args);