v0.41.0
What's Changed
- style: fix typo in function names by @iqdecay in #924
- feat!: support scripts and predicates in
setup_program_test!
(oldsetup_contract_test
) by @segfault-magnet in #910 - feat: add receipt decoder by @MujkicA in #916
- feat: expose code root by @MujkicA in #937
- Bump versions to 0.41.0 by @digorithm in #938
Full Changelog: v0.40.0...v0.41.0
Breaking changes
New setup_program_test!
macro
The macro setup_contract_test!
has been renamed to setup_program_test!
and can now generate bindings for scripts and predicates. You can also create a script instance via LoadScript
. Example:
setup_program_test!(
Wallets("wallet"),
Abigen(Script(
name = "MyScript",
project = "packages/fuels/tests/types/scripts/script_generics"
)),
LoadScript(
name = "script_instance",
script = "MyScript",
wallet = "wallet"
)
);
The command for generating bindings (Abigen
) now requires the program type to be stated. Before: Abigen(name="...
, now: Abigen(Contract(name="..."
.
Read the doc section The setup_program_test! macro
for more details.