You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Forge
Added
A test function may now declare a return type that does not implement Default.
Changed
Minimal recommended Scarb version is now 2.20.1 (updated from 2.18.0).
Fixed
read_txt and the var cheatcode now return a parse error instead of panicking when a value is a lone ' or ".
Failed library call no longer replaces the calling contract's class hash with the library's class hash in reverted calls.
snforge clean trace now removes the snfoundry_trace directory of every package in a workspace, not only the one in the workspace root.
Backtraces no longer drop stack frames or report unrelated functions, caused by an off-by-one when mapping a program counter to a Sierra statement.
Config attributes (e.g. #[should_panic], #[available_gas]) placed before #[fuzzer] are now also applied to explicit #[test_case]s.
Cast
Added
get tx-trace command to get the execution trace of a transaction.
--verifier flag for sncast declare to verify the contract after declaration. It can be combined with --test-files and --confirm-verification in the same way as in sncast verify
get class command to get the contract class definition associated with the given class hash or class address.
get storage command to get a value from contract's storage.
alias add command to create aliases.
Changed
sncast account delete confirmation prompt now defaults to "No".
BREAKING: sncast verify no longer accepts both --url and --network flags.
Cosmetic improvement: section headings in get state-update, get block and ledger sign-hash output are now bold, and ledger sign-hash prints Hash signature without a trailing colon.
BREAKING: sncast account list text output is now grouped by network, and its JSON output is now { "accounts_file", "accounts": [...] }, where each account entry includes its network and name.
sncast completions along with --json flag will result with an error.
Fixed
sncast verify confirmation prompt now correctly defaults to "Yes".
sncast account list no longer hides accounts that share a name with an account on a different network.
sncast account list --json now reports "command": "account list" instead of "account delete".
sncast account list now reports an error for a malformed accounts file instead of printing that no accounts were found.