mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 18:31:05 +00:00
Get rid of rustc_hex in favor of hex (#5370)
* Get rid of rustc_hex in favor of hex * Use HexDisplay
This commit is contained in:
@@ -16,7 +16,6 @@ sp-runtime = { version = "2.0.0-alpha.4", path = "../../../primitives/runtime" }
|
||||
rand = "0.7.2"
|
||||
clap = "2.33.0"
|
||||
tiny-bip39 = "0.7"
|
||||
rustc-hex = "2.0.1"
|
||||
substrate-bip39 = "0.4.1"
|
||||
hex = "0.4.0"
|
||||
hex-literal = "0.2.1"
|
||||
|
||||
@@ -648,7 +648,7 @@ fn read_pair<C: Crypto>(
|
||||
}
|
||||
|
||||
fn format_signature<C: Crypto>(signature: &SignatureOf<C>) -> String {
|
||||
format!("{}", hex::encode(signature))
|
||||
format!("{}", HexDisplay::from(&signature.as_ref()))
|
||||
}
|
||||
|
||||
fn format_seed<C: Crypto>(seed: SeedOf<C>) -> String {
|
||||
@@ -711,7 +711,7 @@ fn create_extrinsic<C: Crypto>(
|
||||
}
|
||||
|
||||
fn print_extrinsic(extrinsic: UncheckedExtrinsic) {
|
||||
println!("0x{}", hex::encode(&extrinsic.encode()));
|
||||
println!("0x{}", HexDisplay::from(&extrinsic.encode()));
|
||||
}
|
||||
|
||||
fn print_usage(matches: &ArgMatches) {
|
||||
|
||||
Reference in New Issue
Block a user