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

Typegen - Fix code generation for Predicates #967

Closed
arboleya opened this issue May 2, 2023 · 0 comments · Fixed by #968
Closed

Typegen - Fix code generation for Predicates #967

arboleya opened this issue May 2, 2023 · 0 comments · Fixed by #968
Assignees
Labels

Comments

@arboleya
Copy link
Member

arboleya commented May 2, 2023

This condition should account for Predicates as well:

const isScript = programType === ProgramTypeEnum.SCRIPT;
const binFiles = !isScript

This will fix the bin file path evaluation for Predicates (currently being left out).

from: https://forum.fuel.network/t/cant-create-predicate-instance-following-use-type-tutorial-in-ts-sdk/2490

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant