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: pass build info as buffer #780

Merged
merged 10 commits into from
Jan 30, 2025
Merged

Conversation

agostbiro
Copy link
Member

Pass build info in tracing config as buffer to avoid FFI copy overhead.

Also upgraded to Hardhat 2.22.18 and added a patch with the changes needed in Hardhat.

Draft PR in Hardhat with the required changes: https://github.com/NomicFoundation/hardhat/pull/6200/files

@agostbiro agostbiro requested a review from fvictorio January 29, 2025 16:49
Copy link

changeset-bot bot commented Jan 29, 2025

🦋 Changeset detected

Latest commit: 7726626

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@nomicfoundation/edr Minor

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

@agostbiro agostbiro self-assigned this Jan 29, 2025
@agostbiro agostbiro had a problem deploying to github-action-benchmark January 29, 2025 16:49 — with GitHub Actions Error
#[napi(object)]
pub struct TracingConfigWithBuffers {
/// Build information to use for decoding contracts.
pub build_infos: Option<Vec<Uint8Array>>,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrapping in an Option is a change from the design doc, but it maintains backwards compatibility as the TracingConfig in Hardhat has the buildInfo as an optional parameter.

@agostbiro agostbiro temporarily deployed to github-action-benchmark January 29, 2025 17:05 — with GitHub Actions Inactive
@agostbiro agostbiro temporarily deployed to github-action-benchmark January 30, 2025 09:20 — with GitHub Actions Inactive
@agostbiro agostbiro had a problem deploying to github-action-benchmark January 30, 2025 10:25 — with GitHub Actions Error
@agostbiro agostbiro requested a review from fvictorio January 30, 2025 10:25
@agostbiro agostbiro temporarily deployed to github-action-benchmark January 30, 2025 10:44 — with GitHub Actions Inactive
@agostbiro agostbiro temporarily deployed to github-action-benchmark January 30, 2025 15:34 — with GitHub Actions Inactive
@agostbiro agostbiro temporarily deployed to github-action-benchmark January 30, 2025 16:04 — with GitHub Actions Inactive
@agostbiro agostbiro added this pull request to the merge queue Jan 30, 2025
Merged via the queue into main with commit af26624 Jan 30, 2025
37 checks passed
@agostbiro agostbiro deleted the chore/tracing-config-with-buffer branch January 30, 2025 16:23
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.

2 participants