Skip to content

Commit

Permalink
Patch Hardhat to pass tracing config to provider
Browse files Browse the repository at this point in the history
  • Loading branch information
fvictorio committed Dec 5, 2024
1 parent 9dbf888 commit b2cfd2f
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 11 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"pnpm": {
"overrides": {
"hardhat>@nomicfoundation/edr": "workspace:*"
},
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
},
"private": true,
Expand Down
13 changes: 13 additions & 0 deletions patches/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/internal/hardhat-network/provider/provider.js b/internal/hardhat-network/provider/provider.js
index a4b921c8a37b7d5967955d0449df3d05dbe725a8..7ff9eac18cb9a587aa6bd13ff69904cb4b610611 100644
--- a/internal/hardhat-network/provider/provider.js
+++ b/internal/hardhat-network/provider/provider.js
@@ -196,7 +196,7 @@ class EdrProviderWrapper extends events_1.EventEmitter {
printLineFn(message);
}
},
- }, (event) => {
+ }, tracingConfig ?? {}, (event) => {
eventAdapter.emit("ethEvent", event);
});
const minimalEthereumJsNode = {
27 changes: 16 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b2cfd2f

Please sign in to comment.