-
Notifications
You must be signed in to change notification settings - Fork 16
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
Conversation
🦋 Changeset detectedLatest commit: 7726626 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
crates/edr_napi/src/provider.rs
Outdated
#[napi(object)] | ||
pub struct TracingConfigWithBuffers { | ||
/// Build information to use for decoding contracts. | ||
pub build_infos: Option<Vec<Uint8Array>>, |
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.
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.
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