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
2020use sc_cli:: {
2121 Error , utils:: print_from_uri, CryptoSchemeFlag ,
@@ -27,13 +27,13 @@ use std::convert::{TryInto, TryFrom};
2727use structopt:: StructOpt ;
2828use 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