Before Starknet Alpha v0.11.0, developers would write contracts in an old version of Cairo, now termed Cairo 0, compile them locally to xref:why_do_we_need_casm[_Casm_], and submit the compilation output to the Starknet sequencer for execution. Starting from the current version of Cairo (previously termed Cairo 1) introduced in Starknet Alpha v0.11.0, the compilation output resulting of Cairo contracts does *not* include Casm. Instead, it includes instructions in an intermediate representation called xref:why_do_we_need_sierra[_Sierra_]. This new contract class is then compiled by the sequencer, via a Sierra-to-Casm compiler, to generate the Casm associated with this class.
0 commit comments