Skip to content
Snippets Groups Projects
Commit daee09e3 authored by poka's avatar poka
Browse files

fix warn

parent cb6b32d6
No related branches found
No related tags found
1 merge request!49Draft: Nostr
Pipeline #40617 passed
......@@ -749,7 +749,6 @@ async fn set_profile(
let nsec = get_nostr_nsec(&keypair)?;
// ---- START: Calculate g1pubv2 and g1pub for tags ----
let mut g1pubv2_for_tag: Option<String> = None;
let mut g1pub_for_tag: Option<String> = None;
let account_id: sp_core::crypto::AccountId32 = match &keypair {
......@@ -757,7 +756,7 @@ async fn set_profile(
KeyPair::Ed25519(pair) => pair.public().into(),
};
let gdev_ss58_address = account_id.to_ss58check_with_version(sp_core::crypto::Ss58AddressFormat::custom(42));
g1pubv2_for_tag = Some(gdev_ss58_address);
let g1pubv2_for_tag: Option<String> = Some(gdev_ss58_address);
match cesium::compute_g1v1_public_key(&keypair) {
Ok(pubkey_g1) => g1pub_for_tag = Some(pubkey_g1),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment