From db2ef4356f3d87f8ed7d93a1ae88bf9196f60964 Mon Sep 17 00:00:00 2001 From: Marvin Jones Date: Thu, 23 Jul 2026 14:55:20 -0400 Subject: [PATCH] test: align is_authorized with PrivateForeignInit's flipped semantics --- .../src/privacy_preserving_transaction/circuit/tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lee/state_machine/src/privacy_preserving_transaction/circuit/tests.rs b/lee/state_machine/src/privacy_preserving_transaction/circuit/tests.rs index e40637c9..4a82ad9b 100644 --- a/lee/state_machine/src/privacy_preserving_transaction/circuit/tests.rs +++ b/lee/state_machine/src/privacy_preserving_transaction/circuit/tests.rs @@ -249,7 +249,7 @@ fn init_note_view_tag_is_derived_from_account_keys() { let keys = test_private_account_keys_1(); let identifier: u128 = 0; let account_id = AccountId::for_regular_private_account(&keys.npk(), &keys.vpk(), identifier); - let account = AccountWithMetadata::new(Account::default(), false, account_id); + let account = AccountWithMetadata::new(Account::default(), true, account_id); let (output, proof) = execute_and_prove( vec![account], @@ -731,7 +731,7 @@ fn private_pda_init_identifier_mismatch_fails() { let npk = keys.npk(); let seed = PdaSeed::new([42; 32]); let account_id = AccountId::for_private_pda(&program.id(), &seed, &npk, &keys.vpk(), 5); - let pre_state = AccountWithMetadata::new(Account::default(), false, account_id); + let pre_state = AccountWithMetadata::new(Account::default(), true, account_id); let result = execute_and_prove( vec![pre_state],