Skip to content

Commit

Permalink
patch hardhat-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Jan 17, 2025
1 parent 3ff71e1 commit 2519f3a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 20 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@
},
"patchedDependencies": {
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]"
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]"
}
},
"packageManager": "[email protected]"
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/dist/src/DeploymentsManager.js b/dist/src/DeploymentsManager.js
index 9ff5b84084cc6a6ce05e6d41efd2e95e868a0082..e2b10562bdd2b3cdf64da4a11d21ed0be2a3cd4d 100644
--- a/dist/src/DeploymentsManager.js
+++ b/dist/src/DeploymentsManager.js
@@ -733,7 +733,7 @@ class DeploymentsManager {
// console.log("fetching " + scriptFilePath);
try {
delete require.cache[scriptFilePath]; // ensure we reload it every time, so changes are taken in consideration
- deployFunc = require(scriptFilePath);
+ deployFunc = await import(scriptFilePath);
if (deployFunc.default) {
deployFunc = deployFunc.default;
}
29 changes: 10 additions & 19 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 2519f3a

Please sign in to comment.