github foundry-rs/starknet-foundry v0.5.0
0.5.0

latest releases: v0.49.0, v0.48.1, v0.48.0...
2 years ago

Forge

Added

  • support for keccak_syscall syscall - it can be used directly in cairo tests
  • l1_handler_execute cheatcode by @glihm
  • support for rolling/warping/pranking the constructor logic (precalculate address, prank, assert pranked state in constructor)
  • spy_events cheatcode
  • support for printing in contracts
  • spoof cheatcode

Cast

Added

  • Support for custom networks - accounts created on custom networks are saved in accounts-file under network's
    chain_id
  • accounts-file field in Scarb.toml profile
  • Include the class hash of an account contract in the accounts-file

Removed

  • --network option together with the network field in Scarb.toml profile — previously used as a validation factor;
    now networks are identified by their chain_id

Other contributors: @amlord , @tiagofneto

Compatible Scarb Versions

Tool Scarb Version
snforge 0.7.0
sncast >=0.4.1, <=0.7.0

Don't miss a new starknet-foundry release

NewReleases is sending notifications on new releases.