Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.44.0] - 2025-05-26

### Forge

#### Changed
Expand All @@ -21,6 +23,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Cast

#### Added

- Displaying the path of the config file when adding a new profile

#### Changed

- OpenZeppelin account updated to v1.0.0 [preset](https://docs.openzeppelin.com/contracts-cairo/1.0.0/api/account#AccountUpgradeable)
Expand Down
93 changes: 49 additions & 44 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ members = [
exclude = ["crates/snforge-scarb-plugin"]

[workspace.package]
version = "0.43.1"
version = "0.44.0"
edition = "2024"
repository = "https://github.com/foundry-rs/starknet-foundry"
license = "MIT"
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 @@ -42,7 +42,7 @@ const MINIMAL_SCARB_VERSION_PREBUILT_PLUGIN: Version = Version::new(2, 10, 0);
const MINIMAL_USC_VERSION: Version = Version::new(2, 0, 0);
const MINIMAL_SCARB_VERSION_FOR_SIERRA_GAS: Version = Version::new(2, 10, 0);
// TODO(#3344) Set this to 0.44.0 after it has been released
const MINIMAL_SNFORGE_STD_VERSION: Version = Version::new(0, 43, 0);
const MINIMAL_SNFORGE_STD_VERSION: Version = Version::new(0, 44, 0);

#[derive(Parser, Debug)]
#[command(
Expand Down

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions crates/forge/tests/e2e/running.rs
Original file line number Diff line number Diff line change
Expand Up @@ -824,11 +824,10 @@ fn incompatible_snforge_std_version_error() {

let output = test_runner(&temp).assert().failure();

// TODO Update this to 0.44.0 after it has been released
assert_stdout_contains(
output,
indoc! {r"
[ERROR] Package snforge_std version does not meet the minimum required version >=0.43.0. Please upgrade snforge_std in Scarb.toml
[ERROR] Package snforge_std version does not meet the minimum required version >=0.44.0. Please upgrade snforge_std in Scarb.toml
"},
);
}
Expand Down
27 changes: 25 additions & 2 deletions crates/forge/tests/e2e/templates.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
use std::fs;

use super::common::runner::runner;
use assert_fs::prelude::PathChild;
use camino::Utf8PathBuf;
use forge::Template;
use packages_validation::check_and_lint;
use scarb_api::ScarbCommand;
use std::fs;
use std::process::Stdio;
use test_case::test_case;
use toml_edit::DocumentMut;

Expand All @@ -14,8 +15,12 @@ use toml_edit::DocumentMut;
fn validate_templates(template: &Template) {
let temp_dir = assert_fs::TempDir::new().expect("Unable to create a temporary directory");
let package_name = format!("{}_test", template.to_string().replace('-', "_"));
let snforge_std = Utf8PathBuf::from("../../snforge_std")
.canonicalize_utf8()
.unwrap();

runner(&temp_dir)
.env("DEV_DISABLE_SNFORGE_STD_DEPENDENCY", "true")
.args([
"new",
"--template",
Expand All @@ -29,6 +34,24 @@ fn validate_templates(template: &Template) {
let package_path = Utf8PathBuf::from_path_buf(package_path.to_path_buf())
.expect("Failed to convert to Utf8PathBuf");

let scarb_add = ScarbCommand::new()
.current_dir(&package_path)
.args([
"add",
"snforge_std",
"--dev",
"--path",
snforge_std.as_str(),
])
.command()
.stdout(Stdio::inherit())
.stderr(Stdio::inherit())
.spawn()
.expect("Failed to run scarb add")
.wait()
.expect("Failed to wait for scarb add");
assert!(scarb_add.success(), "Failed to add snforge_std to package");

// Overwrite Scarb.toml with `allow-warnings = false`
let scarb_toml_path = package_path.join("Scarb.toml");
let mut scarb_toml = fs::read_to_string(&scarb_toml_path)
Expand Down
Loading
Loading