Skip to content
Snippets Groups Projects

update to runtime 800

Merged Hugo Trentesaux requested to merge hugo-dev into master
2 unresolved threads
2 files
+ 3
3
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 2
2
@@ -30,13 +30,13 @@ pub async fn handle_command(_data: Data, command: Subcommand) -> Result<(), Gcli
@@ -30,13 +30,13 @@ pub async fn handle_command(_data: Data, command: Subcommand) -> Result<(), Gcli
};
};
println!("Pubkey (hex): 0x{}", hex::encode(raw_pubkey));
println!("Pubkey (hex): 0x{}", hex::encode(raw_pubkey));
let address: AccountId = sp_core::ed25519::Public(raw_pubkey).into();
let address: AccountId = sp_core::ed25519::Public(raw_pubkey).into();
println!("Address (SS58): {}", address.to_string());
println!("Address (SS58): {}", address);
}
}
Subcommand::Prompt => {
Subcommand::Prompt => {
let keypair = prompt_secret_cesium();
let keypair = prompt_secret_cesium();
println!("Pubkey: {}", bs58::encode(keypair.pkey).into_string());
println!("Pubkey: {}", bs58::encode(keypair.pkey).into_string());
let address: AccountId = keypair.pkey.into();
let address: AccountId = keypair.pkey.into();
println!("Address: {}", address.to_string());
println!("Address: {}", address);
}
}
}
}
Ok(())
Ok(())
Loading