starknet-foundry
starknet-foundry copied to clipboard
Replace `{{ NODE_RPC_URL }}` on `.cairo.template` files only
Which components does the task require to be changed? (think hard pls)
snforge
Description
replace_node_rpc_url_placeholders
is called whenever a test package (from crates/forge/tests/data/
) is being set up for a test. It then processes all the files inside that set up package, no matter their extension. Because of that, it searches for {{ NODE_RPC_URL }}
in all of the project files, making unnecessary overhead - it should only read from files that have .cairo.template
extension.
- Change function implementation to replace contents of only those files that have the
.cairo.template
extension. - Change extension of
.cairo
files in/crates/forge/tests/data/
that contain{{ NODE_RPC_URL }}
string to.cairo.template
.
Original discussion here.
Search in code by TODO (#2074)
Hey! I would like to work on this. Could you assign it to me?
@SourishBiswas23 feel free to submit a PR 👍