Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: sanitize yul artifact contract names #819

Merged
merged 6 commits into from
Jan 9, 2025
Merged

fix: sanitize yul artifact contract names #819

merged 6 commits into from
Jan 9, 2025

Conversation

elfedy
Copy link
Contributor

@elfedy elfedy commented Jan 8, 2025

What 💻

Sanitize contract output for yul source files so that a raw file name is used instead of the whole path.

Why ✋

Given matter-labs/era-compiler-solidity#243, the source name path is used instead of the contract name as the field that contains compilation output of contracts in yul files. This breaks foundry assumptions and makes for weird behavior when storing files.

Evidence 📷

Yul compilation test changed to look for the file name without the extension. Artifact that previously was created after running the test gets removed by temp project.

@elfedy elfedy requested a review from a team as a code owner January 8, 2025 13:25
popzxc
popzxc previously approved these changes Jan 8, 2025
@elfedy elfedy requested a review from nbaztec January 9, 2025 12:24
@elfedy elfedy merged commit 31d3744 into main Jan 9, 2025
23 checks passed
@elfedy elfedy deleted the elfedy-yul-test branch January 9, 2025 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants