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 not generated correctly when there are tuple arguments #3127

Open
gxxcastillo opened this issue Jul 28, 2024 · 0 comments
Open

IDL not generated correctly when there are tuple arguments #3127

gxxcastillo opened this issue Jul 28, 2024 · 0 comments
Labels
bug Something isn't working idl related to the IDL, either program or client side

Comments

@gxxcastillo
Copy link
Contributor

Bug Summary

Defining a function with a tuple as an argument results in the IDL not being generated correctly.

In this reproduction example, it doesn't generate the one function that has the tuple argument,
but in the case I ran into the other day there was a lot more missing than just the one function.

If having a tuple as an argument is not allowed, there should be an error message.

Reproduction Example + Steps

https://github.com/gxxcastillo/anchor-tuple-bug

  1. > yarn install
  2. anchor test

Expected Behavior

The tests in the reproduction repo should pass and the IDL should be generated correctly, OR, if the IDL is not supposed to be generated correctly, there should be a clear error message.

@acheroncrypto acheroncrypto added bug Something isn't working idl related to the IDL, either program or client side labels Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working idl related to the IDL, either program or client side
Projects
None yet
Development

No branches or pull requests

2 participants