Skip to content

[dynamic-codecs] Decoding empty enums and data enums should be consistent #584

@joefitter

Description

@joefitter

When using parseInstruction from the dynamic parsers lib, flat enum args are not mapped in the resulting data.

Eg: parsing a mpl-token-metadata revoke instruction results in data such as { discriminator: 45, revokeArgs: 9 } where revokeArgs is a simple defined enum type in the IDL.

Other instructions with more complex enum args are mapped correctly (eg unlock)

An example tx where this can be seen is 3kMGqHb8cuxZDZW6Ff7M3tsTPZannxcHuDdJzBWJ4csKNn5Ez5XKLhRb12cYR29tdpzrSg23sQ6cG8CXTmNxVKZ

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions