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
|
||||
}
|
||||
|
||||
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
|
||||
T: Debug + Serialize + Send + Sync,
|
||||
R: Serialize + DeserializeOwned + Debug,
|
||||
|
|
Loading…
Reference in New Issue