mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-09 22:18:00 +00:00
Merge branch 'master' into aj/update-substrate-crates
This commit is contained in:
@@ -13,4 +13,4 @@ subxt = { path = "../../subxt" }
|
||||
sp-core = { version = "6.0.0", git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33", package = "sp-core", default-features = false }
|
||||
tokio = { version = "1.8", features = ["macros", "rt-multi-thread"] }
|
||||
which = "4.2.2"
|
||||
jsonrpsee = { version = "0.15.1", features = ["async-client", "client-ws-transport"] }
|
||||
jsonrpsee = { version = "0.16.0", features = ["async-client", "client-ws-transport"] }
|
||||
|
||||
@@ -60,7 +60,7 @@ async fn run() {
|
||||
// Thus, the connection might get rejected a few times.
|
||||
use client::ClientT;
|
||||
let res = match client::build(&format!("ws://localhost:{}", port)).await {
|
||||
Ok(c) => c.request("state_getMetadata", None).await,
|
||||
Ok(c) => c.request("state_getMetadata", client::rpc_params![]).await,
|
||||
Err(e) => Err(e),
|
||||
};
|
||||
|
||||
@@ -174,7 +174,10 @@ mod client {
|
||||
},
|
||||
};
|
||||
|
||||
pub use jsonrpsee::core::client::ClientT;
|
||||
pub use jsonrpsee::core::{
|
||||
client::ClientT,
|
||||
rpc_params,
|
||||
};
|
||||
|
||||
/// Build WS RPC client from URL
|
||||
pub async fn build(url: &str) -> Result<Client, Error> {
|
||||
|
||||
Reference in New Issue
Block a user