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

idl: Fix instructions with tuple parameters not producing an error #3294

Conversation

acheroncrypto
Copy link
Collaborator

Problem

Tuples are not currently supported in the IDL, but using them in instruction parameters do not produce an error as described in #3127.

Summary of changes

Fix instructions with tuple parameters not producing an error during IDL generation.

Example error output:

error: Unsupported type
  --> programs/x/src/lib.rs:11:52
   |
11 |     pub fn test<'info>(ctx: Context<Test>, tuple: (u8, u64)) -> Result<()> {
   |                                                   ^^^^^^^^^

Resolves #3127

Copy link

vercel bot commented Oct 4, 2024

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

A member of the Team first needs to authorize it.

@acheroncrypto acheroncrypto added idl related to the IDL, either program or client side fix Bug fix PR labels Oct 4, 2024
@acheroncrypto acheroncrypto merged commit 36e336a into coral-xyz:master Oct 5, 2024
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix PR idl related to the IDL, either program or client side
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IDL not generated correctly when there are tuple arguments
1 participant