-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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-hexfile
flag to forc build
for hex-encoded output
#7032
Add --generate-hexfile
flag to forc build
for hex-encoded output
#7032
Conversation
Thanks for the contribution! Before we can merge this, we need @JoE11-y to sign the Fuel Labs Contributor License Agreement. |
CodSpeed Performance ReportMerging #7032 will not alter performanceComparing Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few minor changes required:
#[clap(long = "output-hexfile")]
- prepend
output/
to hexfile to persist it there - add back the empty line in
.gitignore
Other than this; LGTM
…-y/sway into feat-add-generate-hex-flag
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor fix to the hexfile some variant required
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice; thanks for this - LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the PR
close #5017
PR adds new
--generate-hexfile
flag to theforc build
command, enabling it to output a hex-encoded JSON representation of the compiled binary alongside the.bin
file.✅ Changes
--generate-hexfile
flag toforc build
..json
file containing the hex-encoded script binary (e.g.,contract-hex.json
).🧪 Example Output
📦 Example Usage
Generates:
contract.bin
(as before)contract-hex.json
(new hex representation)Checklist
Breaking*
orNew Feature
labels where relevant.