mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-22 02:08:00 +00:00
Add pezpallet_name() alias for rebrand compatibility
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user