github foundry-rs/starknet-foundry v0.51.0
0.51.0

latest release: v0.51.1
one day ago

Forge

Added

  • Fuzzable trait implementations for bool and ContractAddress
  • Type aliases for StarkCurveKeyPair, Secp256k1CurveKeyPair, Secp256r1CurveKeyPair
  • Option to display L2 gas for each call in the debugging trace

Changed

  • Updated the error message returned when calling a nonexistent method on a contract to better align with the format used by the network
  • The default tracked resource is now Sierra gas, so gas reporting results may differ compared to previous versions. For more information refer to the documentation
  • When using the --detailed-resources flag, the used Sierra gas key is now shown as sierra gas instead of sierra_gas_consumption

Cast

Added

  • Debug logging for sncast commands that can be enabled by setting SNCAST_LOG env variable.
  • sncast declare command now outputs a ready-to-use deployment command after successful declaration.
  • Possibility to use starknet-devnet predeployed accounts directly in sncast without needing to import them. They are available under specific names - devnet-1, devnet-2, ..., devnet-<N>. Read more here
  • Support for --network devnet flag that attempts to auto-detect running starknet-devnet instance and connect to it.
  • Support for automatically declaring the contract when running sncast deploy, by providing --contract-name flag instead of --class-hash.
  • sncast balance command to fetch the balance of an account for a specified token.

Fixed

  • sncast declare now shows a correct error message when contract is already declared.

Don't miss a new starknet-foundry release

NewReleases is sending notifications on new releases.