Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jsdw opened this issue Nov 21, 2024 · 0 comments
Open

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

jsdw opened this issue Nov 21, 2024 · 0 comments

Comments

@jsdw
Copy link
Collaborator

jsdw commented Nov 21, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant