Skip to content

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

Merged
acheroncrypto merged 2 commits into
otter-sec:masterfrom
acheroncrypto:idl-fix-instructions-with-tuple-parameters-not-producing-an-error
Oct 5, 2024
Merged

idl: Fix instructions with tuple parameters not producing an error#3294
acheroncrypto merged 2 commits into
otter-sec:masterfrom
acheroncrypto:idl-fix-instructions-with-tuple-parameters-not-producing-an-error

Conversation

@acheroncrypto

Copy link
Copy Markdown
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

@vercel

vercel Bot commented Oct 4, 2024

Copy link
Copy Markdown

@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 otter-sec:master Oct 5, 2024
Otter-0x4ka5h pushed a commit to Otter-0x4ka5h/anchor that referenced this pull request Mar 25, 2026
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