Add pezpallet_name() alias for rebrand compatibility

This commit is contained in:
Kurdistan Tech Ministry committed 2025-12-22 00:13:40 +03:00
1 parent 7af0bcd262
commit 0e696a8159
2 files changed
+10

No files matched your search

+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()