From 62437e48ee1998558c5f1c4f6ec03015e318b174 Mon Sep 17 00:00:00 2001 From: Pravdyvy Date: Fri, 26 Jun 2026 18:57:22 +0300 Subject: [PATCH] fix(wallet-ffi): functions is safe --- lez/wallet-ffi/src/pda.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lez/wallet-ffi/src/pda.rs b/lez/wallet-ffi/src/pda.rs index 82269e20..e0b8fbcf 100644 --- a/lez/wallet-ffi/src/pda.rs +++ b/lez/wallet-ffi/src/pda.rs @@ -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,