mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 23:31:07 +00:00
Fix printing of subkey when using the --network override (#6932)
* Fix printing of subkey when using the `--network` override This fixes a bug where `--network` did not printed the account ss58 address for the requested network. Basically we now always print all account ss58 addresses using the requested network. * Review comments * Fixes test * Update client/cli/src/commands/inspect.rs Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com> * Update client/cli/src/commands/utils.rs Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com> * Fix more tests Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com>
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
use structopt::StructOpt;
|
||||
use sc_cli::{
|
||||
Error, VanityCmd, SignCmd, VerifyCmd, InsertCmd,
|
||||
GenerateNodeKeyCmd, GenerateCmd, InspectCmd, InspectNodeKeyCmd
|
||||
GenerateNodeKeyCmd, GenerateCmd, InspectKeyCmd, InspectNodeKeyCmd
|
||||
};
|
||||
use substrate_frame_cli::ModuleIdCmd;
|
||||
use sp_core::crypto::Ss58Codec;
|
||||
@@ -38,7 +38,7 @@ pub enum Subkey {
|
||||
Generate(GenerateCmd),
|
||||
|
||||
/// Gets a public key and a SS58 address from the provided Secret URI
|
||||
InspectKey(InspectCmd),
|
||||
InspectKey(InspectKeyCmd),
|
||||
|
||||
/// Print the peer ID corresponding to the node key in the given file
|
||||
InspectNodeKey(InspectNodeKeyCmd),
|
||||
|
||||
Reference in New Issue
Block a user