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 handling of duplicate type names #78

Open
srdtrk opened this issue Jun 5, 2024 · 1 comment
Open

Fix handling of duplicate type names #78

srdtrk opened this issue Jun 5, 2024 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@srdtrk
Copy link
Owner

srdtrk commented Jun 5, 2024

When two types have the same name, the codegen often breaks down. This likely requires a deep refactor of this messy code. See this schema file as an example:
cw-ibc-lite-ics02-client.json

@srdtrk srdtrk added the bug Something isn't working label Jun 5, 2024
@srdtrk srdtrk added this to the v0.3.0 milestone Jun 7, 2024
@srdtrk
Copy link
Owner Author

srdtrk commented Jun 13, 2024

In case someone is here after running into this issue, I can give a suggestion. If two types have the same name, code should still be generated fine, but you may need to manually edit it to change the name of one of the structs (and wherever it is used) so that go compiles

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