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

Fuelchain does not generate the correct type for OptionOutput<> #519

Closed
matt-user opened this issue Sep 23, 2022 · 0 comments · Fixed by #522
Closed

Fuelchain does not generate the correct type for OptionOutput<> #519

matt-user opened this issue Sep 23, 2022 · 0 comments · Fixed by #522
Assignees
Labels
bug Issue is a bug

Comments

@matt-user
Copy link
Contributor

What version of fuels-ts are you using?

0.16.0

Steps to Reproduce

I have a repro here.
Simply create a contract that has a function which returns an Option. And then generate the frontend types for the contract.

Expected Behavior

The generated type should contain information about the contained type such as struct fields etc. OptionOutput<bool | null>

Actual Behavior

The type generated is OptionOutput<[]>/

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 a pull request may close this issue.

2 participants