(url: &str)
| 26 | |
| 27 | impl Web3 { |
| 28 | pub fn new(url: &str) -> Result<Self> { |
| 29 | let client = Web3::get_client(url)?; |
| 30 | Ok(Self { client }) |
| 31 | } |
| 32 | |
| 33 | /// Create a new HTTP JSON-RPC client with given url. |
| 34 | fn get_client(url: &str) -> Result<HttpClient> { |
nothing calls this directly
no outgoing calls
no test coverage detected