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

fix(ts): correctly construct field layout for type aliases #2821

Conversation

halfbakedsneed
Copy link
Contributor

Problem

Field layouts for type aliased instruction arguments were being constructed using the type alias name as the field name instead of the instruction name (#2820).

Summary of changes

Alters IdlCoder such that it now uses the field (ix) name instead of the type alias name when constructing field layouts.

Fixes

Fixes #2820

Copy link

vercel bot commented Feb 19, 2024

@halfbakedsneed is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

@halfbakedsneed halfbakedsneed force-pushed the fix/field-layout-type-aliased-args branch from 5331622 to a54908a Compare February 19, 2024 05:29
@halfbakedsneed halfbakedsneed force-pushed the fix/field-layout-type-aliased-args branch from a54908a to 8601306 Compare February 19, 2024 05:33
@halfbakedsneed halfbakedsneed marked this pull request as ready for review February 19, 2024 05:41
Copy link
Collaborator

@acheroncrypto acheroncrypto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the concise explanation and fix!

@acheroncrypto acheroncrypto merged commit 253501a into coral-xyz:master Feb 19, 2024
48 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid serialization of type aliased values unless argument name matches type alias name
2 participants