change visibility of the function request in Provider<JsonRpcClient> to public so one can implement Middleware's with custom call to the node (#919)
This commit is contained in:
parent
f97a8ca541
commit
f9f466ef07
|
@ -184,7 +184,7 @@ impl<P: JsonRpcClient> Provider<P> {
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn request<T, R>(&self, method: &str, params: T) -> Result<R, ProviderError>
|
pub async fn request<T, R>(&self, method: &str, params: T) -> Result<R, ProviderError>
|
||||||
where
|
where
|
||||||
T: Debug + Serialize + Send + Sync,
|
T: Debug + Serialize + Send + Sync,
|
||||||
R: Serialize + DeserializeOwned + Debug,
|
R: Serialize + DeserializeOwned + Debug,
|
||||||
|
|
Loading…
Reference in New Issue