Skip to content

v2.5.0

Compare
Choose a tag to compare
@github-actions github-actions released this 22 Jan 20:11
· 373 commits to main since this release
c531a6e

Cairo release notes ➡️

Welcome to the release notes for Scarb v2.5.0!

This is a significant Cairo language update with just a sprinkle of small improvements and fixes in Scarb itself ✨ But don't worry! We're just cooking big stuff behind the scenes 🧑‍🍳

scarb cairo-run arguments

The scarb cairo-run extension can now handle program arguments. Now, the main function in your Cairo programs may have parameters. The arguments can be passed to the scarb cairo-run command as a single JSON array of numbers, decimal bigints or recursive arrays of those. Nested arrays can translate to either Cairo arrays, tuples or plain structures. Consult the following table for example valid arguments and their matching function signatures:

Argument Function signature
[1] fn main(a: u64)
[1, "2"] fn main(a: u64, b: u64)
[[1, 2], [3, 4, 5]] fn main(t: (u64, u64), v: Array<u64>)

Big thank you to @neotheprogramist for implementing this feature! 🎉

Cairo Version

This version of Scarb comes with Cairo v2.5.0.

What's Changed

New Contributors

Full Changelog: v2.4.4...v2.5.0