Skip to content

Releases: foundry-rs/starknet-foundry

0.11.0

22 Nov 13:22
5465c41
Compare
Choose a tag to compare

Forge

Added

  • elect cheatcode for mocking the sequencer address. Read more here.
  • --rerun-failed option to run tests that failed during the last run.

Changed

  • start_warp and stop_warp now take CheatTarget as the first argument instead of ContractAddress. Read more here.
  • start_prank and stop_prank now take CheatTarget as the first argument instead of ContractAddress. Read more here.
  • start_roll and stop_roll now take CheatTarget as the first argument instead of ContractAddress. Read more here.

PS: Credits to @bllu404 for the help with the new interfaces for cheats!

Fixed

  • using unsupported available_gas attribute now fails the specific test case instead of the whole runner

Cast

Added

  • MVP for cairo deployment scripts with declare, deploy, invoke and call

0.10.2

13 Nov 16:38
9c04e09
Compare
Choose a tag to compare

Forge

Changed

  • Bump cairo to 2.3.1

Removed

  • available_gas attribute, it didn't compute correctly gas usage. Contract functions execution cost would not be included.

0.10.1

09 Nov 11:13
2f1597f
Compare
Choose a tag to compare

Cast

Fixed

  • scarb metadata in declare subcommand now takes manifest path from cli if passed instead of looking for it

0.10.0

08 Nov 12:29
886e650
Compare
Choose a tag to compare

Forge

Removed

  • forking of the Pending block

Added

  • --color option to control when colored output is used
  • when specifying BlockId::Tag(Latest) block number of the used block will be printed
  • printing number of ignored and filtered out tests

Fixed

  • Segment Arena Builtin crashing with CairoResourcesNotContainedInFeeCosts when Felt252Dict was used
  • Fixed issue with parsing fork cache values

Cast

Fixed

  • account commands now always return valid json when --json flag is passed
  • allow passing multiple calldata argument items without quotes
  • display correct error message when account file is invalid

0.9.1

30 Oct 15:09
da085bd
Compare
Choose a tag to compare

Forge

Fixed

  • diagnostic paths referring to tests folder
  • caching get_class_hash_at in forking test mode (credits to @jainkunal for catching the bug)

0.9.0

26 Oct 09:29
251761c
Compare
Choose a tag to compare

Forge

Added

  • #[ignore] attribute together with --ignored and include-ignored flags - read more here
  • support for deploy_syscall directly in the test code (alternative to deploy)
  • snforge_std::signature module for performing ecdsa signatures

Changed

  • updated Cairo version to 2.3.0 - compatible Scarb version is 2.3.0:
    • tests in src folder now have to be in a module annotated with #[cfg(test)]
  • snforge_std::PrintTrait will not convert values representing ASCII control characters to strings
  • separated snforge to subcommands: snforge test, snforge init and snforge clean-cache.
    Read more here.
  • starknet::get_block_info now returns correct block info in a forked block

Cast

Added

  • show-config subcommand to display currently used configuration
  • account delete command for removing accounts from the accounts file
  • --hex-format flag has been added

Removed

  • -i short for --int-format is removed, now have to use the full form --int-format

0.8.3

17 Oct 09:37
Compare
Choose a tag to compare

Forge

Changed

  • Test from different crates are no longer run in parallel
  • Test outputs are printed in non-deterministic order

Fixed

  • Test output are printed in real time again
  • Bug when application would not wait for tasks to terminate after execution was cancelled

0.8.3-alpha.1

16 Oct 10:55
Compare
Choose a tag to compare
0.8.3-alpha.1 Pre-release
Pre-release
v0.8.3-alpha.1

update version

0.8.2

12 Oct 11:33
6db50de
Compare
Choose a tag to compare

Forge

Fixed

  • incorrect caller address bug in called contracts

0.8.1

12 Oct 07:30
e6a47f1
Compare
Choose a tag to compare

Forge

Fixed

  • significantly reduced ram usage