Submitted by xuwinnie, also found by 0xsanson
In code unpacker, version hash is not correctly enforced.
In code unpacker, we enforce that version hash is correct.
The second line means, if version hash matches, state_get_from_queue must be true. But this is not what we want. The logic should be if we are getting from queue, version hash must match. Otherwise, even if version hash is incorrect, this line passes as no constraint is actually enforced.
Lets take a closer look at fn conditionally_enforce_true, bool should_enforce is the third parameter.
version_hash_matches.conditionally_enforce_true(cs, state.state_get_from_queue);
Context
miladpiri (zkSync) confirmed
Alex the Entreprenerd (judge) commented:
