mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 21:11:07 +00:00
metadata: Exclude field::type_name from metadata validation (#595)
* metadata: Exclude `field::type_name` from metadata validation Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Adjust code-base to rust `1.62.0` Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
@@ -47,9 +47,9 @@ pub use super::{
|
||||
/// and is exposed only to be called via the codegen. It may
|
||||
/// break between minor releases.
|
||||
#[doc(hidden)]
|
||||
pub async fn subscribe<'a, T: Config, Evs: Decode + 'static>(
|
||||
client: &'a Client<T>,
|
||||
) -> Result<EventSubscription<'a, EventSub<T::Header>, T, Evs>, BasicError> {
|
||||
pub async fn subscribe<T: Config, Evs: Decode + 'static>(
|
||||
client: &Client<T>,
|
||||
) -> Result<EventSubscription<EventSub<T::Header>, T, Evs>, BasicError> {
|
||||
let block_subscription = client.rpc().subscribe_blocks().await?;
|
||||
Ok(EventSubscription::new(client, block_subscription))
|
||||
}
|
||||
@@ -60,9 +60,9 @@ pub async fn subscribe<'a, T: Config, Evs: Decode + 'static>(
|
||||
/// and is exposed only to be called via the codegen. It may
|
||||
/// break between minor releases.
|
||||
#[doc(hidden)]
|
||||
pub async fn subscribe_finalized<'a, T: Config, Evs: Decode + 'static>(
|
||||
client: &'a Client<T>,
|
||||
) -> Result<EventSubscription<'a, FinalizedEventSub<'a, T::Header>, T, Evs>, BasicError> {
|
||||
pub async fn subscribe_finalized<T: Config, Evs: Decode + 'static>(
|
||||
client: &Client<T>,
|
||||
) -> Result<EventSubscription<FinalizedEventSub<T::Header>, T, Evs>, BasicError> {
|
||||
// fetch the last finalised block details immediately, so that we'll get
|
||||
// events for each block after this one.
|
||||
let last_finalized_block_hash = client.rpc().finalized_head().await?;
|
||||
|
||||
Reference in New Issue
Block a user