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: typegen generic configurables #2859

Merged
merged 7 commits into from
Jul 30, 2024
Merged

Conversation

nedsalk
Copy link
Contributor

@nedsalk nedsalk commented Jul 30, 2024

Summary

Fixed the problem reported in the issue and refactored the code a bit.

Checklist

  • I addedtests to prove my changes
  • I updated — all the necessary docs
  • I reviewed — the entire PR myself, using the GitHub UI
  • I described — all breaking changes and the Migration Guide

@nedsalk nedsalk requested a review from petertonysmith94 July 30, 2024 09:00
Torres-ssf

This comment was marked as resolved.

@nedsalk
Copy link
Contributor Author

nedsalk commented Jul 30, 2024

@Torres-ssf it is done via packages/abi-typegen/test/fixtures/templates/contract-with-configurable/dts.hbs. I changed the expected generated code. The test that's verifying the output matches this file's contents is this one. I didn't have to change the test, just the expected output and then implement the fix so that the typegen output matches it.

@nedsalk nedsalk requested a review from Torres-ssf July 30, 2024 12:24
Copy link
Contributor

Coverage Report:

Lines Branches Functions Statements
79.32%(-0.03%) 71.5%(+0%) 77.28%(-0.04%) 79.45%(-0.03%)
Changed Files:
Ok File (✨=New File) Lines Branches Functions Statements
✨ packages/abi-typegen/src/utils/getTypeDeclaration.ts 100%
(+100%)
100%
(+100%)
100%
(+100%)
100%
(+100%)

@nedsalk nedsalk merged commit 9156c02 into master Jul 30, 2024
20 checks passed
@nedsalk nedsalk deleted the ns/fix/typegen-configurables branch July 30, 2024 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Typegen generating invalid types with Scripts and Predicates
4 participants