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

fix: generate help for recursive custom types #1593

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

willemneal
Copy link
Member

@willemneal willemneal commented Sep 10, 2024

Initial minimal failing example. Looking into it, the fix is that we need to change the way the help generates types and their examples. Currently it assumes that types aren't self referential, hence when generating the enum cases it keeps recursing.

So one solution is to create a types table and perhaps use a stack instead. Either way this is a bigger change than I had initially hoped.

@willemneal willemneal linked an issue Sep 10, 2024 that may be closed by this pull request
@willemneal willemneal changed the title fix: fail to generate help for recursive custom types fix: generate help for recursive custom types Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog (Not Ready)
Development

Successfully merging this pull request may close these issues.

Stack overflow error when interacting with testnet contract
1 participant