Skip to content

Is codec_by_datatype macro intended to be generic? #722

@leepl37

Description

@leepl37

I was studying the pallas-codec macros and noticed e.array(2)? is hardcoded.
If we add a variant with 3 fields in the future, could this cause serialization bugs? Should we make the array length dynamic based on the field count?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions