mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 08:27:55 +00:00
Fix compile errors (#17)
* Fix compile errors * Fix tests, close #13 BTW
This commit is contained in:
committed by
Andrew Jones
parent
25c3e81811
commit
650c6d3bb0
+2
-2
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user