v0.37.0
What's Changed
- fix: clear environment before running fuel-core binary by @segfault-magnet in #843
- Improve devx for extracting data from Script by @MujkicA in #801
- docs: update the repo README by @iqdecay in #838
- fix: ci individual package testing by @segfault-magnet in #852
- feat: support configurable constants by @hal3e in #844
- fix!: wasm compatibility for
fuels-types
by @segfault-magnet in #839 - Bump versions to 0.37.0 by @digorithm in #856
Full Changelog: v0.36.1...v0.37.0
New features
New script APIs: ScriptTransaction
and CreateTransaction
You can now build a script transaction in a much easier fashion like this:
let mut tx = ScriptTransaction::new(&inputs, &outputs, params)
.with_script(binary)
.with_script_data(data);
// or to extend inputs/outputs
tx.inputs_mut().extend(other_inputs);
tx.outputs_mut().extend(other_outputs);
This means we've removed ExecutionScript
since this abstraction lacked functionality. And also, constants and params were moved from fuels-core to fuels-types to avoid circular dep.
Configurable constants
An exciting new feature recently landed in Sway: constants. Now, we've added support in the Rust SDK so that you can configure these constants without needing to recompile your Sway code. Read more here: #844.