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

[Bug] #22

Open
Antttezy opened this issue Sep 18, 2022 · 0 comments
Open

[Bug] #22

Antttezy opened this issue Sep 18, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Antttezy
Copy link

Describe the bug
dotnet anchorgen crushes when there are docs section in the type

To Reproduce
In rust code add docs to any account by triple slash. Whan anchor generate idl, it will add "docs" to json

Expected behavior
Generator should ignore docs or, better, add docs to generated account model

Screenshots
image

@Antttezy Antttezy added the bug Something isn't working label Sep 18, 2022
EnderElement added a commit to EnderElement/Solnet.Anchor that referenced this issue May 4, 2023
Issue:
From issue bmresearch#22, generating code from an anchor idl which contains a docs element such as "docs":[ "String" ] will crash the code when executed.
Solution:
These lines of code will be able to look at the docs section without issue, however these changes do not generate code with the contents of docs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant