diff --git a/crates/starknet_gateway_types/src/communication.rs b/crates/starknet_gateway_types/src/communication.rs index e7228584ee..d0a56e3f28 100644 --- a/crates/starknet_gateway_types/src/communication.rs +++ b/crates/starknet_gateway_types/src/communication.rs @@ -55,17 +55,10 @@ pub enum GatewayClientError { } #[async_trait] -impl GatewayClient for LocalGatewayClient { - #[instrument(skip(self))] - async fn add_tx(&self, gateway_input: GatewayInput) -> GatewayClientResult { - let request = GatewayRequest::AddTransaction(gateway_input); - let response = self.send(request).await; - handle_response_variants!(GatewayResponse, AddTransaction, GatewayClientError, GatewayError) - } -} - -#[async_trait] -impl GatewayClient for RemoteGatewayClient { +impl GatewayClient for T +where + T: Send + Sync + ComponentClient, +{ #[instrument(skip(self))] async fn add_tx(&self, gateway_input: GatewayInput) -> GatewayClientResult { let request = GatewayRequest::AddTransaction(gateway_input);