From 5df2731db36448679f5db8651889f799412baec8 Mon Sep 17 00:00:00 2001 From: Leonardo Custodio Date: Mon, 10 Jul 2023 22:31:40 -0300 Subject: [PATCH] Changes wallet daemon address output (#3) --- lib/src/config_loader.rs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/src/config_loader.rs b/lib/src/config_loader.rs index 1b22f67..d84f644 100644 --- a/lib/src/config_loader.rs +++ b/lib/src/config_loader.rs @@ -165,7 +165,7 @@ where }; // Note on types: We need T: AppPair for `LocalKeyStore::key_pair(T)` and that's only implemented for by the *AppPair(where * is the key type) - // but `PairSigner::new(T)` requres `T::Signature: From` and `T::Signature` in most cases is `MultiSignature` and that is only implemented for `P = *Pair` + // but `PairSigner::new(T)` requires `T::Signature: From` and `T::Signature` in most cases is `MultiSignature` and that is only implemented for `P = *Pair` // (Not *AppPair) where * is the key type. PairSig::new( key_store @@ -271,14 +271,11 @@ where Ss58Codec::from_ss58check(&*account_id.to_string()).unwrap(); println!( - "Efinity address: {}", - converted_id.to_ss58check_with_version(Ss58AddressFormat::custom(1110)) + "Wallet daemon address in different formats:\nEfinity: {}\nMatrix: {}\nCanary: {}", + converted_id.to_ss58check_with_version(Ss58AddressFormat::custom(1110)), + converted_id.to_ss58check_with_version(Ss58AddressFormat::custom(12120)), + converted_id.to_ss58check_with_version(Ss58AddressFormat::custom(9030)), ); - println!( - "Rocfinity address: {}", - converted_id.to_ss58check_with_version(Ss58AddressFormat::custom(195)) - ); - println!("Substrate address: {account_id}"); let wallet = EfinityWallet::new(&context_provider, signer); let wallet_connection_pair = WalletConnectionPair {