Skip to content

Commit 251761c

Browse files
authored
Bump Cairo and Scarb to 2.3.0 (#955)
Did not verify the new sierra class hashes, but afaik we have a task to automate those tests #929 Wrapping tests in src in `#[cfg(test)]` was needed - it shouldn't have been allowed in the first place before, seems like a fixed compiler bug ## Introduced changes Self-explanatory. ## Checklist - [x] Linked relevant issue - [x] Updated relevant documentation - [x] Added relevant tests - [x] Performed self-review of the code - [x] Added changes to `CHANGELOG.md`
1 parent f0c3e81 commit 251761c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+709
-591
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
test-forge-unit-and-integration:
1313
name: Test Forge / Unit and Integration Tests
1414
env:
15-
SCARB_VERSION: 0.7.0
15+
SCARB_VERSION: 2.3.0
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v4
@@ -29,7 +29,7 @@ jobs:
2929
test-forge-e2e:
3030
name: Test Forge / E2E Tests
3131
env:
32-
SCARB_VERSION: 0.7.0
32+
SCARB_VERSION: 2.3.0
3333
runs-on: ubuntu-latest
3434
steps:
3535
- name: Extract branch name
@@ -67,7 +67,7 @@ jobs:
6767
test-cheatnet:
6868
name: Test Cheatnet
6969
env:
70-
SCARB_VERSION: 0.7.0
70+
SCARB_VERSION: 2.3.0
7171
runs-on: ubuntu-latest
7272
steps:
7373
- uses: actions/checkout@v4

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ pyproject.toml
55
target
66
.vscode/
77
.env
8+
Scarb.lock
9+
!snforge_std/Scarb.lock
810
*/node_modules

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717

1818
#### Changed
1919

20+
- updated Cairo version to 2.3.0 - compatible Scarb version is 2.3.0:
21+
- tests in `src` folder now have to be in a module annotated with `#[cfg(test)]`
2022
- `snforge_std::PrintTrait` will not convert values representing ASCII control characters to strings
2123
- separated `snforge` to subcommands: `snforge test`, `snforge init` and `snforge clean-cache`.
2224
Read more [here](https://foundry-rs.github.io/starknet-foundry/appendix/forge.html).

0 commit comments

Comments
 (0)