From 9a4e539f556290b52ca0af9ae2b178645f086fa2 Mon Sep 17 00:00:00 2001 From: Artem Gureev Date: Tue, 30 Jun 2026 14:08:32 +0000 Subject: [PATCH] refactor(circuit): remove optimistic pda id derivation --- .../src/bin/privacy_preserving_circuit/execution_state.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/program_methods/guest/src/bin/privacy_preserving_circuit/execution_state.rs b/program_methods/guest/src/bin/privacy_preserving_circuit/execution_state.rs index eff40a0b..75c0e9f9 100644 --- a/program_methods/guest/src/bin/privacy_preserving_circuit/execution_state.rs +++ b/program_methods/guest/src/bin/privacy_preserving_circuit/execution_state.rs @@ -527,11 +527,11 @@ fn resolve_authorization_and_record_bindings( caller_pda_seeds: &[PdaSeed], previous_is_authorized: bool, ) -> bool { - let pda_address = account_identities - .get(pre_state_position) - .and_then(InputAccountIdentity::private_pda_address); let matched_caller_seed: Option<(PdaSeed, bool, ProgramId)> = caller_program_id.and_then(|caller| { + let pda_address = account_identities + .get(pre_state_position) + .and_then(InputAccountIdentity::private_pda_address); caller_pda_seeds.iter().find_map(|seed| { if AccountId::for_public_pda(&caller, seed) == pre_account_id { return Some((*seed, false, caller));