mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 19:21:13 +00:00
Upgrade to substrate alpha.3 crates.io dependencies (#73)
* Use substrate dependencies from crates.io * Remove test that depends on node_runtime. Because node_runtime is not on crates.io and was downloading duplicate substrate dependencies. The integration tests will test whether the serialization of keys and calls works. * Fix updated jsonrpsee compilation errors * Add missing frame-metadata dependency
This commit is contained in:
+3
-3
@@ -28,7 +28,7 @@ use codec::{
|
||||
};
|
||||
use jsonrpsee::{
|
||||
client::Subscription,
|
||||
core::common::{
|
||||
common::{
|
||||
to_value as to_json_value,
|
||||
Params,
|
||||
},
|
||||
@@ -96,9 +96,9 @@ where
|
||||
T: System,
|
||||
{
|
||||
pub async fn connect_ws(url: &str) -> Result<Self, Error> {
|
||||
let raw_client = jsonrpsee::ws::ws_raw_client(&url).await?;
|
||||
let client = jsonrpsee::ws_client(&url).await?;
|
||||
Ok(Rpc {
|
||||
client: raw_client.into(),
|
||||
client: client.into(),
|
||||
marker: PhantomData,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user