Skip to content

Commit

Permalink
chore: bump cairo edition (#2562)
Browse files Browse the repository at this point in the history
<!-- Reference any GitHub issues resolved by this PR -->

Closes #2561

## Introduced changes

<!-- A brief description of the changes -->

- Bumps the default CAIRO_EDITION to the latest version

## Checklist

<!-- Make sure all of these are complete -->

- [x] Linked relevant issue
- [x] Updated relevant documentation
- [ ] Added relevant tests
- [x] Performed self-review of the code
- [x] Added changes to `CHANGELOG.md`

---------

Co-authored-by: Artur Michałek <52135326+cptartur@users.noreply.github.com>
  • Loading branch information
enitrat and cptartur authored Oct 25, 2024
1 parent b021654 commit f7cfe3e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- When using test name filter with `--exact` flag, forge will try to compile only the selected test.

### Forge

#### Changed

- Cairo Edition in `snforge init` template set to `2024_07`

## [0.31.0] - 2024-09-26

### Cast
Expand Down
2 changes: 1 addition & 1 deletion crates/forge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ mod shared_cache;
pub mod test_filter;
mod warn;

pub const CAIRO_EDITION: &str = "2023_11";
pub const CAIRO_EDITION: &str = "2024_07";

#[derive(Parser, Debug)]
#[command(
Expand Down
2 changes: 2 additions & 0 deletions starknet_forge_template/src/lib.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ pub trait IHelloStarknet<TContractState> {
/// Simple contract for managing balance.
#[starknet::contract]
mod HelloStarknet {
use core::starknet::storage::{StoragePointerReadAccess, StoragePointerWriteAccess};

#[storage]
struct Storage {
balance: felt252,
Expand Down

0 comments on commit f7cfe3e

Please sign in to comment.