Skip to content

Honour the field rename attr #[scale_info(rename = "foo")] #70

@jsdw

Description

@jsdw

paritytech/scale-info#209 allows fields to be renamed via typeinfo. We should also honour this field when applying our DecodeAsType derive macro, to ensure a type with #[derive(TypeInfo, scale_decode::DecodeAsType)] can be properly decoded using its type info.

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