From e03937041ba3a44bfbbca8d97140a7167d3afcdb Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 26 Mar 2023 14:19:02 -0400 Subject: [PATCH] Revert "*add From> for ClientError" This reverts commit a103982ff0b1d12021501bf796913eeb4d00c627. --- ethers-providers/src/transports/http.rs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/ethers-providers/src/transports/http.rs b/ethers-providers/src/transports/http.rs index ad473c0e..1df204da 100644 --- a/ethers-providers/src/transports/http.rs +++ b/ethers-providers/src/transports/http.rs @@ -75,23 +75,6 @@ impl From for JsonRpcError { } } -impl From> for ClientError { - fn from(result: Result) -> Self { - match result { - Ok(msg) => ClientError::JsonRpcError(JsonRpcError { - code: 0, - message: msg, - data: None, - }), - Err(_) => ClientError::JsonRpcError(JsonRpcError { - code: 0, - message: "response is not a string".to_string(), - data: None, - }), - } - } -} - #[cfg_attr(target_arch = "wasm32", async_trait(?Send))] #[cfg_attr(not(target_arch = "wasm32"), async_trait)] impl JsonRpcClient for Provider {