Skip to content

feat(enum): allow for enum tag discriminant to be u16 #151

Open
@dzmitry-lahoda

Description

Current spec says:

enums are serialized with using u8 for the enum ordinal 

Can we make it support u16 too?

Current experimental borsh-rs schema allows tag_width to be 2 bytes, which allows to discriminant to be u16.

I tried to expand u8 to 16, but I did not even know there was spec stating u8 (near/borsh-rs#315)

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