Skip to content

Mapping macros between types with different variants #54

@michaelsproul

Description

@michaelsproul

It would be useful to be able to map a superstruct type onto another type with fewer variants.

This comes up in LH where we have e.g. AttestationBase and AttestationElectra (2 variants), and want to map into Attestation from a type with more variants (like BeaconBlock – 7 variants and counting).

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