mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 01:41:09 +00:00
Remove visibility limiter pub (crate) from Metadata (#162)
* Remove visibility limiter `pub (crate)` * Run fmt * Add comments
This commit is contained in:
+8
-7
@@ -93,10 +93,8 @@ impl Metadata {
|
|||||||
.ok_or(MetadataError::ModuleNotFound(name))
|
.ok_or(MetadataError::ModuleNotFound(name))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn module_with_calls<S>(
|
/// Returns `ModuleWithCalls`.
|
||||||
&self,
|
pub fn module_with_calls<S>(&self, name: S) -> Result<&ModuleWithCalls, MetadataError>
|
||||||
name: S,
|
|
||||||
) -> Result<&ModuleWithCalls, MetadataError>
|
|
||||||
where
|
where
|
||||||
S: ToString,
|
S: ToString,
|
||||||
{
|
{
|
||||||
@@ -106,11 +104,13 @@ impl Metadata {
|
|||||||
.ok_or(MetadataError::ModuleNotFound(name))
|
.ok_or(MetadataError::ModuleNotFound(name))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn modules_with_events(&self) -> impl Iterator<Item = &ModuleWithEvents> {
|
/// Returns Iterator of `ModuleWithEvents`.
|
||||||
|
pub fn modules_with_events(&self) -> impl Iterator<Item = &ModuleWithEvents> {
|
||||||
self.modules_with_events.values()
|
self.modules_with_events.values()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn module_with_events(
|
/// Returns `ModuleWithEvents`.
|
||||||
|
pub fn module_with_events(
|
||||||
&self,
|
&self,
|
||||||
module_index: u8,
|
module_index: u8,
|
||||||
) -> Result<&ModuleWithEvents, MetadataError> {
|
) -> Result<&ModuleWithEvents, MetadataError> {
|
||||||
@@ -120,7 +120,8 @@ impl Metadata {
|
|||||||
.ok_or(MetadataError::ModuleIndexNotFound(module_index))
|
.ok_or(MetadataError::ModuleIndexNotFound(module_index))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn module_with_errors(
|
/// Returns `ModuleWithErrors`.
|
||||||
|
pub fn module_with_errors(
|
||||||
&self,
|
&self,
|
||||||
module_index: u8,
|
module_index: u8,
|
||||||
) -> Result<&ModuleWithErrors, MetadataError> {
|
) -> Result<&ModuleWithErrors, MetadataError> {
|
||||||
|
|||||||
Reference in New Issue
Block a user