fix(wallet-ffi): functions is safe

This commit is contained in:
Pravdyvy 2026-06-26 18:57:22 +03:00
parent 0ee39e04ee
commit 62437e48ee

View File

@ -11,7 +11,7 @@ use crate::{FfiBytes32, FfiNullifierPublicKey, FfiPdaSeed, FfiProgramId, FfiU128
/// # Returns
/// - `FfiBytes32` representing account id bytes
#[no_mangle]
pub unsafe extern "C" fn wallet_ffi_account_id_for_public_pda(
pub extern "C" fn wallet_ffi_account_id_for_public_pda(
program_id: FfiProgramId,
pda_seed: FfiPdaSeed,
) -> FfiBytes32 {
@ -29,7 +29,7 @@ pub unsafe extern "C" fn wallet_ffi_account_id_for_public_pda(
/// # Returns
/// - `FfiBytes32` representing account id bytes
#[no_mangle]
pub unsafe extern "C" fn wallet_ffi_account_id_for_private_pda(
pub extern "C" fn wallet_ffi_account_id_for_private_pda(
program_id: FfiProgramId,
pda_seed: FfiPdaSeed,
npk: FfiNullifierPublicKey,