Skip to content

Commit 975c55c

Browse files
committed
Resolve #2074
commit-id:b701265d
1 parent 6aabc54 commit 975c55c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/forge/tests/e2e/common/runner.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ pub(crate) fn setup_package_with_file_patterns(
165165

166166
manifest_path.write_str(&scarb_toml.to_string()).unwrap();
167167

168-
// TODO (#2074): do that on .cairo.template files only
169168
replace_node_rpc_url_placeholders(temp.path());
170169

171170
temp
@@ -187,7 +186,7 @@ fn replace_node_rpc_url_placeholders(dir_path: &Path) {
187186

188187
let path = entry.path();
189188

190-
if path.is_file() {
189+
if path.is_file() && path.extension().is_some_and(|ex| ex == "cairo") {
191190
let content = fs::read_to_string(path).unwrap();
192191

193192
let modified_content = content.replace("{{ NODE_RPC_URL }}", url.as_str());

0 commit comments

Comments
 (0)