Skip to content

0.4.0

Compare
Choose a tag to compare
@github-actions github-actions released this 17 Aug 09:17
· 893 commits to master since this release
1981e86

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