minor fixes

This commit is contained in:
Sosthene 2025-06-30 22:44:39 +02:00
parent 9377a42099
commit 0372b95111

View File

@ -253,7 +253,6 @@ pub fn get_address() -> ApiResult<String> {
.get_sp_client() .get_sp_client()
.get_receiving_address() .get_receiving_address()
.to_string(); .to_string();
debug!("{}", address);
Ok(address) Ok(address)
} }
@ -1451,7 +1450,8 @@ pub fn create_update_message(
} }
// We shouldn't ever have error here since we already checked above // We shouldn't ever have error here since we already checked above
let shared_secret = shared_secrets.get_secret_for_address(sp_address.as_str().try_into()?).unwrap(); let shared_secret = shared_secrets.get_secret_for_address(sp_address.as_str().try_into()?)
.ok_or(AnyhowError::msg("Failed to retrieve secret".to_owned()))?;
let cipher = encrypt_with_key(shared_secret.as_byte_array(), prd_msg.as_bytes())?; let cipher = encrypt_with_key(shared_secret.as_byte_array(), prd_msg.as_bytes())?;
ciphers.push(cipher.to_lower_hex_string()); ciphers.push(cipher.to_lower_hex_string());