We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6aabc54 commit 975c55cCopy full SHA for 975c55c
crates/forge/tests/e2e/common/runner.rs
@@ -165,7 +165,6 @@ pub(crate) fn setup_package_with_file_patterns(
165
166
manifest_path.write_str(&scarb_toml.to_string()).unwrap();
167
168
- // TODO (#2074): do that on .cairo.template files only
169
replace_node_rpc_url_placeholders(temp.path());
170
171
temp
@@ -187,7 +186,7 @@ fn replace_node_rpc_url_placeholders(dir_path: &Path) {
187
186
188
let path = entry.path();
189
190
- if path.is_file() {
+ if path.is_file() && path.extension().is_some_and(|ex| ex == "cairo") {
191
let content = fs::read_to_string(path).unwrap();
192
193
let modified_content = content.replace("{{ NODE_RPC_URL }}", url.as_str());
0 commit comments