Skip to content

Fill array with default value when function returns smaller array than expected #396

@tim-hoffman

Description

@tim-hoffman

See: circom/tests/arrays/array_size_mismatch_return.circom
The function produces array<5 x felt> but the caller expects array<10 x felt>. Similar cases in circom/tests/arrays/array_size_mismatch_store_*.circom have been handled but this case when it happens via a function return is not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P:HighHigh Priority

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions