use crate::{base::Handler, std::objects::module::ModuleId};
/// Return the identifier for this module.
pub trait ModuleIdentification: Sized {
/// Get the module identifier.
fn module_id(&self) -> ModuleId<'static>;
}
impl<T: Handler> ModuleIdentification for T {
fn module_id(&self) -> ModuleId<'static> {
self.contract().info().0
}
}