Merge branch 'master' into update-artifacts-1754872649

This commit is contained in:
James Wilson
2025-08-11 15:51:14 +01:00
committed by GitHub
8 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -279,7 +279,7 @@ where
}
/// Fetch the metadata for this extrinsic.
pub fn extrinsic_metadata(&self) -> Result<ExtrinsicMetadataDetails, Error> {
pub fn extrinsic_metadata(&self) -> Result<ExtrinsicMetadataDetails<'_>, Error> {
let pallet = self.metadata.pallet_by_index_err(self.pallet_index())?;
let variant = pallet
.call_variant_by_index(self.variant_index())
+1 -1
View File
@@ -339,7 +339,7 @@ impl<T: Config> EventDetails<T> {
}
/// Fetch details from the metadata for this event.
pub fn event_metadata(&self) -> EventMetadataDetails {
pub fn event_metadata(&self) -> EventMetadataDetails<'_> {
let pallet = self
.metadata
.pallet_by_index(self.pallet_index())
+4 -4
View File
@@ -25,7 +25,7 @@ impl Metadata {
pub fn pallet_by_name_err(
&self,
name: &str,
) -> Result<subxt_metadata::PalletMetadata, MetadataError> {
) -> Result<subxt_metadata::PalletMetadata<'_>, MetadataError> {
self.pallet_by_name(name)
.ok_or_else(|| MetadataError::PalletNameNotFound(name.to_owned()))
}
@@ -34,7 +34,7 @@ impl Metadata {
pub fn pallet_by_index_err(
&self,
index: u8,
) -> Result<subxt_metadata::PalletMetadata, MetadataError> {
) -> Result<subxt_metadata::PalletMetadata<'_>, MetadataError> {
self.pallet_by_index(index)
.ok_or(MetadataError::PalletIndexNotFound(index))
}
@@ -43,7 +43,7 @@ impl Metadata {
pub fn runtime_api_trait_by_name_err(
&self,
name: &str,
) -> Result<subxt_metadata::RuntimeApiMetadata, MetadataError> {
) -> Result<subxt_metadata::RuntimeApiMetadata<'_>, MetadataError> {
self.runtime_api_trait_by_name(name)
.ok_or_else(|| MetadataError::RuntimeTraitNotFound(name.to_owned()))
}
@@ -52,7 +52,7 @@ impl Metadata {
pub fn custom_value_by_name_err(
&self,
name: &str,
) -> Result<subxt_metadata::CustomValueMetadata, MetadataError> {
) -> Result<subxt_metadata::CustomValueMetadata<'_>, MetadataError> {
self.custom()
.get(name)
.ok_or_else(|| MetadataError::CustomValueNameNotFound(name.to_owned()))
+3 -3
View File
@@ -72,17 +72,17 @@ impl PlatformRef for SubxtPlatform {
fn spawn_task(
&self,
_task_name: std::borrow::Cow<str>,
_task_name: std::borrow::Cow<'_, str>,
task: impl future::Future<Output = ()> + Send + 'static,
) {
wasm_bindgen_futures::spawn_local(task);
}
fn client_name(&self) -> std::borrow::Cow<str> {
fn client_name(&self) -> std::borrow::Cow<'_, str> {
"subxt-light-client".into()
}
fn client_version(&self) -> std::borrow::Cow<str> {
fn client_version(&self) -> std::borrow::Cow<'_, str> {
env!("CARGO_PKG_VERSION").into()
}
+1 -1
View File
@@ -240,7 +240,7 @@ impl Metadata {
}
/// Obtain a unique hash representing this metadata or specific parts of it.
pub fn hasher(&self) -> MetadataHasher {
pub fn hasher(&self) -> MetadataHasher<'_> {
MetadataHasher::new(self)
}
+1 -1
View File
@@ -223,7 +223,7 @@ where
}
/// See [`subxt_core::blocks::ExtrinsicDetails::extrinsic_metadata()`].
pub fn extrinsic_metadata(&self) -> Result<ExtrinsicMetadataDetails, Error> {
pub fn extrinsic_metadata(&self) -> Result<ExtrinsicMetadataDetails<'_>, Error> {
self.inner.extrinsic_metadata().map_err(Into::into)
}
+1 -1
View File
@@ -169,7 +169,7 @@ impl std::fmt::Display for ModuleError {
impl ModuleError {
/// Return more details about this error.
pub fn details(&self) -> Result<ModuleErrorDetails, MetadataError> {
pub fn details(&self) -> Result<ModuleErrorDetails<'_>, MetadataError> {
let pallet = self.metadata.pallet_by_index_err(self.pallet_index())?;
let variant = pallet
.error_variant_by_index(self.error_index())
+1 -1
View File
@@ -118,7 +118,7 @@ impl<T: Config> EventDetails<T> {
}
/// Fetch details from the metadata for this event.
pub fn event_metadata(&self) -> EventMetadataDetails {
pub fn event_metadata(&self) -> EventMetadataDetails<'_> {
self.inner.event_metadata()
}