Skip to content

fix(chisel): use config root and script dir in !export#13756

Open
FredPhilipy wants to merge 1 commit intofoundry-rs:masterfrom
FredPhilipy:config
Open

fix(chisel): use config root and script dir in !export#13756
FredPhilipy wants to merge 1 commit intofoundry-rs:masterfrom
FredPhilipy:config

Conversation

@FredPhilipy
Copy link
Contributor

!export checks for foundry.toml in the current working directory and always writes to the relative path script/REPL.s.sol. This breaks when chisel is launched from a subdirectory or when the user has configured a custom script directory in foundry.toml — the check fails or the file ends up in the wrong place.

The dispatcher already holds the loaded Config with the correct root and script paths. This PR replaces the hardcoded paths with the config values and updates the output message to show the actual export path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant