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 json: "isOptional" not working #82

Open
jeongwoo-ji opened this issue May 9, 2024 · 1 comment
Open

idl json: "isOptional" not working #82

jeongwoo-ji opened this issue May 9, 2024 · 1 comment

Comments

@jeongwoo-ji
Copy link

https://github.com/MeteoraAg/dlmm-sdk/blob/main/target/idl/lb_clmm.json#L129

i couldn't find the code which handle isOptional.. is it a bug?

@jeongwoo-ji jeongwoo-ji changed the title idl json: "isOptional not working idl json: "isOptional" not working May 9, 2024
@SC4RECOIN
Copy link

this repo was probably developed against an old version of anchor and optional accounts was added in anchor 0.26 so I'm sure this tool doesn't support it

You can pass in the program id instead if the optional field is required
This is what anchor does for you: coral-xyz/anchor#2101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants