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:
Andrew Jones
2020-03-06 11:58:23 +00:00
committed by GitHub
parent dcc6b91d10
commit 8ea264d7b0
4 changed files with 15 additions and 47 deletions
+3 -3
View File
@@ -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,
})
}