FuelLabs / sway

🌴 Empowering everyone to build reliable and efficient smart contracts.
https://docs.fuel.network/docs/sway/
Apache License 2.0
62.78k stars 5.35k forks source link

Add an option to `forc deploy` and `forc run` to write the constructed transaction to a file #4130

Open mitchmindtree opened 1 year ago

mitchmindtree commented 1 year ago

This could be used in combination with --dry-run to output a transaction to file rather than deploying or running directly.

This would be useful for creating transactions that can be used for testing, and for greater interop with the forc submit and forc wallet sign plugin commands.

This would ideally support either json or the binary representation used by fuel-core.

nfurfaro commented 1 year ago

This could also be useful for the forc-tx plugin if that feature is still planned.