Add pezpallet_name() alias for rebrand compatibility

This commit is contained in:
2025-12-22 00:13:40 +03:00
parent 7af0bcd262
commit 0e696a8159
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -341,6 +341,11 @@ impl<T: Config> EventDetails<T> {
self.event_metadata().pallet.name()
}
/// Alias for pallet_name() - rebranded terminology (pezpallet)
pub fn pezpallet_name(&self) -> &str {
self.pallet_name()
}
/// The name of the event (ie the name of the variant that it corresponds to).
pub fn variant_name(&self) -> &str {
&self.event_metadata().variant.name
+5
View File
@@ -111,6 +111,11 @@ impl<T: Config> EventDetails<T> {
self.inner.pallet_name()
}
/// Alias for pallet_name() - rebranded terminology (pezpallet)
pub fn pezpallet_name(&self) -> &str {
self.pallet_name()
}
/// The name of the event (ie the name of the variant that it corresponds to).
pub fn variant_name(&self) -> &str {
self.inner.variant_name()