Forge
Added
Fuzzable
trait implementations forbool
andContractAddress
- 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 assierra gas
instead ofsierra_gas_consumption
Cast
Added
- Debug logging for
sncast
commands that can be enabled by settingSNCAST_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 insncast
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 runningstarknet-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.