mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-30 07:29:49 +00:00
Rename ModuleToIndex to PalletRuntimeSetup (#7148)
* Rename `ModuleToIndex` to `PalletRuntimeSetup` Besides the renaming it also adds support getting the name of a pallet as configured in the runtime. * Rename it to `PalletInfo` * Remove accidentally added files
This commit is contained in:
1 parent
22632efc5f
commit
86594727d9
62 files changed
+119
-88
No files matched your search
@@ -140,8 +140,8 @@ macro_rules! decl_error {
|
||||
for $crate::sp_runtime::DispatchError
|
||||
{
|
||||
fn from(err: $error<$generic $(, $inst_generic)?>) -> Self {
|
||||
let index = <$generic::ModuleToIndex as $crate::traits::ModuleToIndex>
|
||||
::module_to_index::<$module<$generic $(, $inst_generic)?>>()
|
||||
let index = <$generic::PalletInfo as $crate::traits::PalletInfo>
|
||||
::index::<$module<$generic $(, $inst_generic)?>>()
|
||||
.expect("Every active module has an index in the runtime; qed") as u8;
|
||||
|
||||
$crate::sp_runtime::DispatchError::Module {
|
||||
|
||||
Reference in new issue
Block a user