github foundry-rs/starknet-foundry v0.4.0
0.4.0

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

Forge

Added

  • mock_call cheatcodes
  • Functions parse_txt and TxtParser<T>::deserialize_txt to load data from plain text files and serialize it
  • #[should_panic] attribute support by @enitrat
  • get_class_hash cheatcode by @glihm
  • Print support for all basic numeric data types

Changed

  • Exported snforge_std as a Scarb package, now you have to import it explicitly with e.g. use snforge_std::declare
    and add it as a dependency to your Scarb.toml
[dependencies]
# ...
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag = "0.4.0" }
  • Gently fails test when user tries to use syscalls not supported by forge test runner
  • Updated cairo-lang to 2.1.0, starknet-api to 0.4.1 and blockifier to 0.2.0-rc0

Cast

Added

  • Added --class-hash flag to account create/deploy, allowing for custom openzeppelin account contract class hash

Other contributors: @Utilitycoder , @binsta,

Compatible Scarb Versions

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

Don't miss a new starknet-foundry release

NewReleases is sending notifications on new releases.