v1.0.0-alpha.4
github-actions
released this
07 Mar 12:36
·
3806 commits
to main
since this release
Release notes
Cairo Language
Added ability to test specific panic values in tests. For example:
#[test]
#[should_panic(expected = ('assert(false)'))]
fn test_assert_false() {
assert(false, 'assert(false)');
}
-
Syntax:
No need for turbofish in types. For example,Array::<felt>
is nowArray<felt>
.
ref
arguments no longer have to be the first arguments. -
Added
Array::span
to the corelib.
StarkNet contract features
All execution info getters was merged into one syscall. These syscalls were removed:
get_block_number_syscall
get_block_timestamp_syscall
get_caller_address_syscall
get_contract_address_syscall
get_sequencer_address_syscall
And replaced with:
get_execution_info_syscall