Function generate_public_dispatch
pub comptime fn generate_public_dispatch(
m: Module,
generate_emit_public_init_nullifier: bool,
) -> Quoted
pub comptime fn generate_public_dispatch(
m: Module,
generate_emit_public_init_nullifier: bool,
) -> Quoted
Generates a
public_dispatchfunction for an Aztec contract modulem.The generated function dispatches public calls based on selector to the appropriate contract function. If
generate_emit_public_init_nullifieris true, it also handles dispatch to the macro-generated__emit_public_init_nullifierfunction.Alongside
public_dispatch, this also emits one__aztec_nr_internals__unpack_arguments_<N>helper per parameter-type signature shared by enough public functions; see [compute_unpack_prelude] for the extraction criterion.