Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 36eb978

Browse files
committed
subcommand moduleid to palletid
1 parent b177b13 commit 36eb978

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

utils/frame/frame-utilities-cli/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
//! frame-system CLI utilities
1919
20-
mod module_id;
20+
mod pallet_id;
2121

22-
pub use module_id::ModuleIdCmd;
22+
pub use pallet_id::PalletIdCmd;
2323

utils/frame/frame-utilities-cli/src/module_id.rs renamed to utils/frame/frame-utilities-cli/src/pallet_id.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// See the License for the specific language governing permissions and
1616
// limitations under the License.
1717

18-
//! Implementation of the `moduleid` subcommand
18+
//! Implementation of the `palletid` subcommand
1919
2020
use sc_cli::{
2121
Error, utils::print_from_uri, CryptoSchemeFlag,
@@ -27,13 +27,13 @@ use std::convert::{TryInto, TryFrom};
2727
use structopt::StructOpt;
2828
use frame_support::PalletId;
2929

30-
/// The `moduleid` command
30+
/// The `palletid` command
3131
#[derive(Debug, StructOpt)]
3232
#[structopt(
33-
name = "moduleid",
33+
name = "palletid",
3434
about = "Inspect a module ID address"
3535
)]
36-
pub struct ModuleIdCmd {
36+
pub struct PalletIdCmd {
3737
/// The module ID used to derive the account
3838
id: String,
3939

@@ -60,7 +60,7 @@ pub struct ModuleIdCmd {
6060
pub keystore_params: KeystoreParams,
6161
}
6262

63-
impl ModuleIdCmd {
63+
impl PalletIdCmd {
6464
/// runs the command
6565
pub fn run<R>(&self) -> Result<(), Error>
6666
where
@@ -74,7 +74,7 @@ impl ModuleIdCmd {
7474

7575
let id_fixed_array: [u8; 8] = self.id.as_bytes()
7676
.try_into()
77-
.map_err(|_| "Cannot convert argument to moduleid: argument should be 8-character string")?;
77+
.map_err(|_| "Cannot convert argument to palletid: argument should be 8-character string")?;
7878

7979
let account_id: R::AccountId = PalletId(id_fixed_array).into_account();
8080

0 commit comments

Comments
 (0)