From 8c09b7e79aabcfade805daed7b0a2ebb4648343f Mon Sep 17 00:00:00 2001 From: Abhishek Shah Date: Wed, 20 Mar 2024 16:11:20 +0530 Subject: [PATCH] review fixes 2 --- src/commands/add/mod.rs | 4 ++-- src/engines/pallet_engine/template.rs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/commands/add/mod.rs b/src/commands/add/mod.rs index f2800cc99..d6c8c1d60 100644 --- a/src/commands/add/mod.rs +++ b/src/commands/add/mod.rs @@ -14,7 +14,7 @@ pub(crate) struct AddArgs { #[arg(global = true, short, long)] /// Runtime path; for example: `sub0/runtime/src/lib.rs` /// Runtime cargo manifest path will be inferred as `(parent of lib.rs)/Cargo.toml` - pub(crate) runtime: Option, + pub(crate) runtime_path: Option, } #[derive(Subcommand)] #[command(subcommand_required = true)] @@ -43,7 +43,7 @@ pub(crate) struct FrameArgs { impl AddArgs { pub(crate) fn execute(&self) -> anyhow::Result<()> { match self.commands { - AddCommands::Pallet(ref cmd) => cmd.clone().execute(&self.runtime), + AddCommands::Pallet(ref cmd) => cmd.clone().execute(&self.runtime_path), } } } diff --git a/src/engines/pallet_engine/template.rs b/src/engines/pallet_engine/template.rs index 4891697c9..a10a7cb96 100644 --- a/src/engines/pallet_engine/template.rs +++ b/src/engines/pallet_engine/template.rs @@ -4,7 +4,6 @@ use crate::{ }; use std::{fs, path::PathBuf}; -// use super::{pallet_entry::AddPalletEntry, PalletEngine}; pub fn create_pallet_template( path: Option,