Fix compile errors (#17)

* Fix compile errors

* Fix tests, close #13 BTW
This commit is contained in:
Yuanchao Sun
2019-09-13 03:31:05 +08:00
committed by Andrew Jones
parent 25c3e81811
commit 650c6d3bb0
3 changed files with 8 additions and 10 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ use runtime_primitives::{
use sr_version::RuntimeVersion;
use std::convert::TryInto;
use substrate_primitives::storage::StorageKey;
use substrate_rpc::{
use substrate_rpc_api::{
author::AuthorClient,
chain::{
number::NumberOrHex,
@@ -163,7 +163,7 @@ impl<T: System> Rpc<T> {
event
});
self.chain
.subscribe_new_head()
.subscribe_new_heads()
.map(|stream| stream.map(closure))
.map_err(Into::into)
}