github starkware-libs/cairo v1.0.0-alpha.4

latest releases: v2.12.2, v2.12.1, v2.12.0...
2 years ago

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 now Array<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

Don't miss a new cairo release

NewReleases is sending notifications on new releases.