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

Add --generate-hex flag to forc build #5017

Open
nedsalk opened this issue Aug 24, 2023 · 0 comments
Open

Add --generate-hex flag to forc build #5017

nedsalk opened this issue Aug 24, 2023 · 0 comments
Labels
forc good first issue Good for newcomers

Comments

@nedsalk
Copy link

nedsalk commented Aug 24, 2023

It would be beneficial to have the option for forc build to create a hex representation of the binary, as javascript bundlers cannot bundle .bin files. The @FuelLabs/sdk-ts overcomes this by hexing the binary when running fuels typegen, a CLI tool which enables a type-safe experience when interacting with sway programs. This issue intends to remove this CLI tool's type-safety part by moving from file generation to compile-time type inference of the ABI. However, the problem of hexing binaries would still remain and we wouldn't be able to get rid of the CLI tool completely.
If forc build were to output the hexed version of the binary, it would improve the developer experience of our ts-sdk and would align it with how the rust-sdk doesn't need any CLI tool. It would also be a big step up relative to the TS ethereum ecosystem, where CLI tools are still necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forc good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants