Skip to content

0.28.0

Compare
Choose a tag to compare
@github-actions github-actions released this 22 Aug 10:52
· 131 commits to master since this release
4dfe39d

Forge

Breaking Changes

  • Forge 0.28.0 requires Scarb >= 2.7.0
  • Asserts (eg assert_eq!) now have to be included as a scarb dependency by adding assert_macros = "0.1.0" to dependencies section of Scarb.toml

Changed

  • Cairo version is bumped to 2.7.0
  • Max steps in tests (configured by argument --max-n-steps) now defaults to 10 million
    if not provided (changed from 4 million).
  • Fork tests now discover chain ID via provided RPC URL, defaulting to SN_SEPOLIA
  • #[fork] attribute parameters format. Read more here
  • Steps counting
  • Block tag changed name from Latest to latest
  • declare cheatcode now returns Result<DeclareResult, Array<felt252>>. Read more here

Cast

Added

  • Commands that commit transactions now display links to block explorers. When in human-readable mode, invoke, declare, deploy, multicall run, account create and account deploy will display additional information with an url. A new key in Cast configuration - block-explorer determines which block explorer service the displayed link leads to. Possible options are: StarkScan, Voyager, ViewBlock, OkLink, NftScan.

Changed

  • account create outputs hint about the type of the tokens required to prefund a newly created account with before deployment

  • sncast no longer expects --url as a common argument. It is now required specifically by commands that utilise it, i.e. account add, account create, account delete, account deploy, multicall run, script run, call, declare, deploy, invoke, show-config, tx-status.
    Commands that do not require --url anymore: account list, multicall new, script init, verify