mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-05-09 01:29:39 +00:00
Addresses the following review comments: - "I'd rename all mask_3 references in test names and variables to a private pda wording. If in the future we change the mask number for the private pda, this naming will silently get outdated." I renamed all tests and the local variable mask3_account to private_pda_account. - "Let's use more descriptive names. `mask3` is not very meaningful." I renamed all `mask3` into `private_pda`. Panic messages and .expect strings updated to match. Doc comments that factually describe the encoding (e.g. "mask-3 account" meaning "an account whose visibility mask is 3") are left as-is since they are accurate and remain stable until the mask value itself changes. - "..._panics" to "..._fails" Covered above. The tests assert Err(CircuitProvingError), so execute_and_prove returns an Err, the test process itself never panics. - "we can return `Some((*seed, true, caller))` to avoid having to unwrap the `caller_program_id` again in line 290" I changed matched_caller_seed from Option<(PdaSeed, bool)> to Option<(PdaSeed, bool, ProgramId)>, return the `caller` captured by the enclosing and_then from each match arm, and dropped the .expect at the consumer site. Bundled with the rename since both touch the same branch and a single guest ELF rebuild covers them.
377 KiB
377 KiB