Skip to content

Allow deploying programs with only views (no functions) #3271

Description

@mohammadfawaz

Follow-up from #3253.

check_program_is_well_formed currently requires at least one function, so a program declaring only views (and no functions) cannot be deployed today. Such deployments would have 0 verifying keys, which may violate downstream assumptions across the deploy/verify path.

Investigate the assumptions and, if safe, relax check_program_is_well_formed to accept view-only programs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions