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:
Nicolas Trippar 2022-02-17 07:30:03 -05:00 committed by GitHub
parent f97a8ca541
commit f9f466ef07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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,