Skip to content

Releases: foundry-rs/starknet-foundry

0.56.0

04 Feb 08:46
f530c15

Choose a tag to compare

Forge

Removed

  • Support for Scarb versions < 2.12.0. snforge now requires Scarb 2.12.0 or newer
  • The deprecated snforge_scarb_plugin_deprecated
  • The deprecated snforge_std_deprecated

Changed

  • --detailed-resources output now includes all gas-related resources
  • deploy and deploy_at methods on ContractClass instance now allow constructor errors to be caught instead of failing immediately. This change diverges from the behavior of the deploy_syscall on the network, where such errors cannot be caught.
  • Template created by snforge new --template erc20-contract now uses openzeppelin_token version 3.0.0 (updated from 1.0.0). This template requires Scarb version >= 2.15.1.

Cast

Fixed

  • sncast balance command now correctly displays token unit instead of token for eth and strk

0.55.0

14 Jan 10:27
8891212

Choose a tag to compare

Forge

Changed

  • Minimal recommended Scarb version is now 2.13.1 (updated from 2.12.2)
  • snforge_scarb_plugin now 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

  • network field can now be configured in snfoundry.toml

Changed

  • --network flag can be used with --add-profile flag

0.54.1

23 Dec 15:42

Choose a tag to compare

Forge

Fixed

  • Fixed a bug that caused a slowdown in test execution

0.55.0-rc.0

19 Dec 14:39
b79f597

Choose a tag to compare

0.55.0-rc.0 Pre-release
Pre-release

Forge

Changed

  • Minimal recommended Scarb version is now 2.12.2 (updated from 2.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. Use snforge completions instead.

Cast

Changed

  • Error message for already declared contracts now includes the class hash

Fixed

  • When using account create or account import commands without specifying --network or --url, url from snfoundry.toml is now used correctly (if present)
  • Fixed account's balance value from sncast balance command

Removed

  • The deprecated sncast completion. Use sncast completions instead.

0.54.0

10 Dec 08:26
bc522a7

Choose a tag to compare

Forge

Added

  • get_current_vm_step function 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-oracles flag.`
  • Fixed a bug that caused failure data to be displayed twice

Cast

Added

  • type field to most responses when using --json output format.

Changed

  • sncast script init now longer adds cairo_test as dependency in Scarb.toml
  • Replaced the free RPC provider to Zan
  • The supported RPC version is now 0.10.0

Fixed

  • Restored missing command missing from some responses when using --json output format.
  • When deploying account with --keystore flag sncast now longer ask two times for password

0.53.0

25 Nov 09:08
c953d86

Choose a tag to compare

Forge

Added

  • --gas-report flag 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

19 Nov 14:24
e2002de

Choose a tag to compare

0.53.0-rc.0 Pre-release
Pre-release

Forge

Added

  • --gas-report flag 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

06 Nov 10:44
ae2bfed

Choose a tag to compare

Forge

Changed

  • Scarb 2.13 is supported
  • Gas values in fuzzing test output are now displayed as whole numbers without fractional parts
  • Minimal recommended Scarb version is now 2.11.4 (updated from 2.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 --network flag via sncast profile in snfoundry.toml

0.51.2

31 Oct 18:00

Choose a tag to compare

Cast

Changed

  • Replaced the free RPC provider used.

0.51.1

23 Oct 09:42
6f5a02e

Choose a tag to compare

Forge

Fixed

  • A bug that caused meta_tx_v0 to panic when tracked resources are Sierra gas.