This is the Cairo version associated with Starknet 0.13.1. Contracts written with 2.6.0 are not declarable on Starknet until the upgrade.
Major Updates
- Added support for gas coupons.
- Gas coupons are a way to pay for calling a function, in a different place then the actual function call.
- Allows support for recursive destructs (as we can hold such a coupon for the recursive destruct call in the recursive object).
- Only available with experimental flags.
- Support for const simple value, as well as wrapping structs and enums of these in Sierra.
New Feautres
- Better manual gas handling - if gas is handled manually - gas withdrawal is not automatically added. #4880
- Added if-let expression support.
- Added support for underscore pattern in match on tuples. #4996
- Add
cmp::minmax
function by @delaaxe in #4981
Optimizations
- Improved performance for ecdsa. #4985
New Contributors
Full Changelog: v2.5.3...v2.6.0-rc.0