-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Don't parse the build info to get the solc version #7186
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
Conversation
🦋 Changeset detectedLatest commit: 6682140 The changes in this PR will be included in the next version bump. This PR includes changesets to release 21 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR optimizes build info processing by extracting Solidity compiler versions from build info IDs using regex pattern matching instead of reading and parsing the entire build info JSON files.
- Eliminates unnecessary file I/O operations by parsing version information from build info ID format
- Adds regex pattern matching to extract Solidity version components from build info IDs
- Includes proper handling for non-Hardhat generated build infos by filtering them out
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| v-next/hardhat/src/internal/builtin-plugins/solidity-test/edr-artifacts.ts | Replaces file parsing with regex extraction of Solidity versions from build info IDs |
| .changeset/silent-jobs-wash.md | Documents the performance optimization in the changelog |
No description provided.