mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-16 00:21:05 +00:00
revert changes: InspectKeyCmd back to InspectCmd where appropriate (#8787)
This commit is contained in:
@@ -41,7 +41,7 @@ pub enum Subcommand {
|
|||||||
name = "inspect",
|
name = "inspect",
|
||||||
about = "Decode given block or extrinsic using current native runtime."
|
about = "Decode given block or extrinsic using current native runtime."
|
||||||
)]
|
)]
|
||||||
Inspect(node_inspect::cli::InspectKeyCmd),
|
Inspect(node_inspect::cli::InspectCmd),
|
||||||
|
|
||||||
/// The custom benchmark subcommmand benchmarking runtime pallets.
|
/// The custom benchmark subcommmand benchmarking runtime pallets.
|
||||||
#[structopt(name = "benchmark", about = "Benchmark runtime pallets.")]
|
#[structopt(name = "benchmark", about = "Benchmark runtime pallets.")]
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ use structopt::StructOpt;
|
|||||||
|
|
||||||
/// The `inspect` command used to print decoded chain data.
|
/// The `inspect` command used to print decoded chain data.
|
||||||
#[derive(Debug, StructOpt)]
|
#[derive(Debug, StructOpt)]
|
||||||
pub struct InspectKeyCmd {
|
pub struct InspectCmd {
|
||||||
#[allow(missing_docs)]
|
#[allow(missing_docs)]
|
||||||
#[structopt(flatten)]
|
#[structopt(flatten)]
|
||||||
pub command: InspectSubCmd,
|
pub command: InspectSubCmd,
|
||||||
|
|||||||
@@ -18,14 +18,14 @@
|
|||||||
|
|
||||||
//! Command ran by the CLI
|
//! Command ran by the CLI
|
||||||
|
|
||||||
use crate::cli::{InspectKeyCmd, InspectSubCmd};
|
use crate::cli::{InspectCmd, InspectSubCmd};
|
||||||
use crate::Inspector;
|
use crate::Inspector;
|
||||||
use sc_cli::{CliConfiguration, ImportParams, Result, SharedParams};
|
use sc_cli::{CliConfiguration, ImportParams, Result, SharedParams};
|
||||||
use sc_service::{new_full_client, Configuration, NativeExecutionDispatch};
|
use sc_service::{new_full_client, Configuration, NativeExecutionDispatch};
|
||||||
use sp_runtime::traits::Block;
|
use sp_runtime::traits::Block;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
|
||||||
impl InspectKeyCmd {
|
impl InspectCmd {
|
||||||
/// Run the inspect command, passing the inspector.
|
/// Run the inspect command, passing the inspector.
|
||||||
pub fn run<B, RA, EX>(&self, config: Configuration) -> Result<()>
|
pub fn run<B, RA, EX>(&self, config: Configuration) -> Result<()>
|
||||||
where
|
where
|
||||||
@@ -54,7 +54,7 @@ impl InspectKeyCmd {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl CliConfiguration for InspectKeyCmd {
|
impl CliConfiguration for InspectCmd {
|
||||||
fn shared_params(&self) -> &SharedParams {
|
fn shared_params(&self) -> &SharedParams {
|
||||||
&self.shared_params
|
&self.shared_params
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user