Skip to content

Commit

Permalink
Upgrade snforge and delete unnecessary Scarb.toml keys (#112)
Browse files Browse the repository at this point in the history
<!-- Reference any GitHub issues resolved by this PR -->

Related
#110 (comment)

## Introduced changes

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

- bump snforge in Scarb.toml and .tools-versions

## Checklist

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

- [ ] Linked relevant issue
- [ ] Updated relevant documentation
- [ ] Added relevant tests
- [x] Performed self-review of the code
- [ ] Added changes to `CHANGELOG.md`
  • Loading branch information
ksew1 authored Dec 9, 2024
1 parent 01ef4b3 commit 1cef477
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 57 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
starknet-foundry 0.30.0
starknet-foundry 0.34.0
scarb 2.8.1
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,11 @@ name = "complex_calculator"
version = "0.1.0"
edition = "2024_07"

# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html
[dependencies]
starknet = ">=2.8.0"

[dev-dependencies]
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag = "v0.29.0" }

[[target.starknet-contract]]
sierra = true

[scripts]
test = "snforge test"
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag = "v0.34.0" }

[profile.dev.cairo]
unstable-add-statements-functions-debug-info = true
Expand Down
9 changes: 1 addition & 8 deletions crates/cairo-coverage/tests/data/coverage_ignore/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,11 @@ name = "coverage_ignore"
version = "0.1.0"
edition = "2024_07"

# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html
[dependencies]
starknet = ">=2.8.0"

[dev-dependencies]
snforge_std = "0.30.0"

[[target.starknet-contract]]
sierra = true

[scripts]
test = "snforge test"
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag = "v0.34.0" }

[profile.dev.cairo]
unstable-add-statements-functions-debug-info = true
Expand Down
9 changes: 1 addition & 8 deletions crates/cairo-coverage/tests/data/macros/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,11 @@ name = "macros"
version = "0.1.0"
edition = "2024_07"

# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html
[dependencies]
starknet = ">=2.8.0"

[dev-dependencies]
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag = "v0.29.0" }

[[target.starknet-contract]]
sierra = true

[scripts]
test = "snforge test"
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag = "v0.34.0" }

[profile.dev.cairo]
unstable-add-statements-functions-debug-info = true
Expand Down
9 changes: 1 addition & 8 deletions crates/cairo-coverage/tests/data/readme_example/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,11 @@ name = "readme_example"
version = "0.1.0"
edition = "2024_07"

# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html
[dependencies]
starknet = ">=2.8.0"

[dev-dependencies]
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag = "v0.29.0" }

[[target.starknet-contract]]
sierra = true

[scripts]
test = "snforge test"
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag = "v0.34.0" }

[profile.dev.cairo]
unstable-add-statements-functions-debug-info = true
Expand Down
9 changes: 1 addition & 8 deletions crates/cairo-coverage/tests/data/scarb_template/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,11 @@ name = "scarb_template"
version = "0.1.0"
edition = "2024_07"

# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html
[dependencies]
starknet = ">=2.8.0"

[dev-dependencies]
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag = "v0.29.0" }

[[target.starknet-contract]]
sierra = true

[scripts]
test = "snforge test"
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag = "v0.34.0" }

[profile.dev.cairo]
unstable-add-statements-functions-debug-info = true
Expand Down
9 changes: 1 addition & 8 deletions crates/cairo-coverage/tests/data/simple/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,11 @@ name = "simple"
version = "0.1.0"
edition = "2024_07"

# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html
[dependencies]
starknet = ">=2.8.0"

[dev-dependencies]
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag = "v0.29.0" }

[[target.starknet-contract]]
sierra = true

[scripts]
test = "snforge test"
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag = "v0.34.0" }

[profile.dev.cairo]
unstable-add-statements-functions-debug-info = true
Expand Down
10 changes: 2 additions & 8 deletions crates/cairo-coverage/tests/data/snforge_template/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,15 @@ name = "snforge_template"
version = "0.1.0"
edition = "2023_11"

# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html

[dependencies]
starknet = "2.8.0"
starknet = ">=2.8.0"

[dev-dependencies]
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag = "v0.30.0" }
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag = "v0.34.0" }

[[target.starknet-contract]]
sierra = true

[scripts]
test = "snforge test"


[profile.dev.cairo]
unstable-add-statements-functions-debug-info = true
unstable-add-statements-code-locations-debug-info = true
Expand Down

0 comments on commit 1cef477

Please sign in to comment.