mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 15:41:02 +00:00
update jsonrpsee to 0.2.0-alpha.5 (#8644)
This commit is contained in:
@@ -13,10 +13,8 @@ readme = "README.md"
|
||||
targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
jsonrpsee-http-client = { version = "=0.2.0-alpha.3", default-features = false, features = ["tokio02"] }
|
||||
# Needed by jsonrpsee-proc-macros: https://github.com/paritytech/jsonrpsee/issues/214
|
||||
jsonrpsee-types = "=0.2.0-alpha.3"
|
||||
jsonrpsee-proc-macros = "=0.2.0-alpha.3"
|
||||
jsonrpsee-http-client = { version = "=0.2.0-alpha.5", default-features = false, features = ["tokio02"] }
|
||||
jsonrpsee-proc-macros = "=0.2.0-alpha.5"
|
||||
|
||||
hex-literal = "0.3.1"
|
||||
env_logger = "0.8.2"
|
||||
|
||||
@@ -113,7 +113,7 @@ use sp_core::{
|
||||
storage::{StorageKey, StorageData},
|
||||
};
|
||||
use codec::{Encode, Decode};
|
||||
use jsonrpsee_http_client::{HttpClient, HttpConfig};
|
||||
use jsonrpsee_http_client::{HttpClient, HttpClientBuilder};
|
||||
|
||||
use sp_runtime::traits::Block as BlockT;
|
||||
|
||||
@@ -173,7 +173,7 @@ impl<B: BlockT> Default for OnlineConfig<B> {
|
||||
impl<B: BlockT> OnlineConfig<B> {
|
||||
/// Return a new http rpc client.
|
||||
fn rpc(&self) -> HttpClient {
|
||||
HttpClient::new(&self.uri, HttpConfig { max_request_body_size: u32::MAX })
|
||||
HttpClientBuilder::default().max_request_body_size(u32::MAX).build(&self.uri)
|
||||
.expect("valid HTTP url; qed")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user