Releases: foundry-rs/starknet-foundry
Releases · foundry-rs/starknet-foundry
0.56.0
Forge
Removed
- Support for Scarb versions < 2.12.0.
snforgenow requires Scarb 2.12.0 or newer - The deprecated
snforge_scarb_plugin_deprecated - The deprecated
snforge_std_deprecated
Changed
--detailed-resourcesoutput now includes all gas-related resourcesdeployanddeploy_atmethods onContractClassinstance now allow constructor errors to be caught instead of failing immediately. This change diverges from the behavior of thedeploy_syscallon the network, where such errors cannot be caught.- Template created by
snforge new --template erc20-contractnow usesopenzeppelin_tokenversion3.0.0(updated from1.0.0). This template requires Scarb version >=2.15.1.
Cast
Fixed
sncast balancecommand now correctly displays token unit instead of token forethandstrk
0.55.0
Forge
Changed
- Minimal recommended
Scarbversion is now2.13.1(updated from2.12.2) snforge_scarb_pluginnow emits an error if unexpected named args are passed to#[available_gas],#[fork],#[fuzzer],#[should_panic]and#[test_case]attributes
Fixed
- Byte arrays containing non-printable characters are now displayed correctly in fuzz test output
Warning
This is the last version publishing snforge_std_deprecated. If you are still using the deprecated version, please migrate to the stable snforge_std as soon as possible.
Cast
Added
networkfield can now be configured insnfoundry.toml
Changed
--networkflag can be used with--add-profileflag
0.54.1
Forge
Fixed
- Fixed a bug that caused a slowdown in test execution
0.55.0-rc.0
Forge
Changed
- Minimal recommended
Scarbversion is now2.12.2(updated from2.11.4)
Fixed
- Signature generation now enforces the low-s rule
- Fixed a bug that caused a slowdown in test execution
- Panic that occurred in debug trace and gas report when using mock calls
Removed
- The deprecated
snforge completion. Usesnforge completionsinstead.
Cast
Changed
- Error message for already declared contracts now includes the class hash
Fixed
- When using
account createoraccount importcommands without specifying--networkor--url, url from snfoundry.toml is now used correctly (if present) - Fixed account's balance value from
sncast balancecommand
Removed
- The deprecated
sncast completion. Usesncast completionsinstead.
0.54.0
Forge
Added
get_current_vm_stepfunction to get the current step during test execution. For more see docs
Fixed
- Cheatcodes are now reflected in called contract, when directly using a library call from test code
- Oracles are fully supported for Scarb versions >= 2.13.1. Bugs related to oracles' output handling have been fixed.
Removed the--experimental-oraclesflag.` - Fixed a bug that caused failure data to be displayed twice
Cast
Added
typefield to most responses when using--jsonoutput format.
Changed
sncast script initnow longer addscairo_testas dependency inScarb.toml- Replaced the free RPC provider to Zan
- The supported RPC version is now 0.10.0
Fixed
- Restored missing
commandmissing from some responses when using--jsonoutput format. - When deploying account with
--keystoreflagsncastnow longer ask two times for password
0.53.0
Forge
Added
--gas-reportflag to display a table of L2 gas breakdown for each contract and selector
Cast
Changed
- The supported RPC version is now 0.10.0-rc.1
- Hash function used when declaring contracts is selected based on the Starknet version
0.53.0-rc.0
Forge
Added
--gas-reportflag to display a table of L2 gas breakdown for each contract and selector
Cast
Changed
- The supported RPC version is now 0.10.0-rc.1
0.52.0
Forge
Changed
- Scarb 2.13 is supported
- Gas values in fuzzing test output are now displayed as whole numbers without fractional parts
- Minimal recommended
Scarbversion is now2.11.4(updated from2.10.1)
Fixed
- A bug that prevented the
#[test_case]attribute from being used on its own with cheatcodes
Cast
Added
- Possibility to configure urls of predefined networks used by
--networkflag viasncastprofile insnfoundry.toml
0.51.2
Cast
Changed
- Replaced the free RPC provider used.
0.51.1
Forge
Fixed
- A bug that caused
meta_tx_v0to panic when tracked resources are Sierra gas.