Skip to content

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

@vercel
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 solana-foundation:master Feb 19, 2024
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