refactor(lee): keep the authorization precondition match wildcard-free

This commit is contained in:
Artem Gureev 2026-08-05 07:00:04 +00:00 committed by agureev
parent d05035eb9e
commit ca23f12f7a
3 changed files with 4 additions and 1 deletions

View File

@ -67,7 +67,10 @@ pub fn compute_circuit_output(
};
match (kind, nullifier) {
(WitnessKind::Regular, _) => assert!(
(
WitnessKind::Regular,
NullifierWitness::Init { .. } | NullifierWitness::Update { .. },
) => assert!(
pre_state.is_authorized,
"Regular private account pre-state must be authorized"
),