Skip to content

Add support for multiple return values in get_type_for_variants #1187

Open
@JulianGCalderon

Description

@JulianGCalderon

When returning an enum, we use get_type_for_variants to build the return type. This function doesn't support when one of the variants have more than one value.

src/types/enum.rs#L763:

// TODO: Change this function to accept a slice of slices (for variants). Not all uses have a slice
//   with one `ConcreteTypeId` per variant (deploy_syscalls has two types for the Ok() variant).

Once this has been implemented, we could update the deploy syscalls` to use this function, rather than doing it manually.

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