Forge
Added
declare!macro for declaring contracts using Cairo paths. Read more here.- Debugging traces now display the class hash for forked contracts.
declare_from_filefunction for declaring contracts from Sierra contract class JSON files. Read more here.
Changed
ActualandExpectedpanic data in the#[should_panic]mismatch message now labels rendered values inline, making it clear whether each value is aByteArrayor afelt252.- Minimal recommended
Scarbversion is now2.18.0(updated from2.17.0) - Re-enabled the
add-types-debug-info = truerequirement for--launch-debuggeron Scarb>= 2.20.0
Fixed
- Malformed byte array panic data (e.g. an untrusted words length) no longer causes a crash when matching
#[should_panic]expected data. Additionally, invalid byte array serializations (e.g. badpending_word_len) are now rejected instead of rendered as a corrupted string.
Cast
Added
--contract-addressflag toget balancecommand, allowing to check balance for any contract, not only accountsget state-updatecommand that fetches the state update for a given block- Optional
--private-keyand--private-key-fileinaccount createcommand to allow specifying a private key for the newly created account
Changed
sncast show-confignow displays network URL overrides specified under[sncast.<profile>.networks].
Fixed
- Re-enabled
StarkScanas a supportedblock-exploreroption (currently available only formainnet). get balancecommand for undeployed accounts
Removed
- Cairo deployment scripts (
sncast scriptcommand andsncast_stdlibrary). - Deprecated top-level
sncast tx-statusandsncast balancecommands. Usesncast get tx-statusandsncast get balanceinstead.