Forge
Added
- A test function may now declare a return type that does not implement
Default.
Changed
- Minimal recommended
Scarbversion is now2.20.1(updated from2.18.0).
Fixed
read_txtand thevarcheatcode 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 tracenow removes thesnfoundry_tracedirectory 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-tracecommand to get the execution trace of a transaction.--verifierflag forsncast declareto verify the contract after declaration. It can be combined with--test-filesand--confirm-verificationin the same way as insncast verifyget classcommand to get the contract class definition associated with the given class hash or class address.get storagecommand to get a value from contract's storage.alias addcommand to create aliases.
Changed
sncast account deleteconfirmation prompt now defaults to "No".- BREAKING:
sncast verifyno longer accepts both--urland--networkflags. - Cosmetic improvement: section headings in
get state-update,get blockandledger sign-hashoutput are now bold, andledger sign-hashprintsHash signaturewithout a trailing colon. - BREAKING:
sncast account listtext output is now grouped by network, and its JSON output is now{ "accounts_file", "accounts": [...] }, where each account entry includes itsnetworkandname. sncast completionsalong with--jsonflag will result with an error.
Fixed
sncast verifyconfirmation prompt now correctly defaults to "Yes".sncast account listno longer hides accounts that share a name with an account on a different network.sncast account list --jsonnow reports"command": "account list"instead of"account delete".sncast account listnow reports an error for a malformed accounts file instead of printing that no accounts were found.- Formatting a
u384value no longer panics.