Skip to content

Commit 8687146

Browse files
committed
update patches
1 parent e2dc52b commit 8687146

File tree

5 files changed

+36
-13
lines changed

5 files changed

+36
-13
lines changed

bun.lock

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@
5252
"@openzeppelin/contracts": "^4.1.0",
5353
"dns-packet": "^5.3.0"
5454
},
55+
"patchedDependencies": {
56+
"hardhat-deploy@0.12.4": "patches/hardhat-deploy@0.12.4.patch",
57+
"@nomicfoundation/hardhat-viem@2.0.6": "patches/@nomicfoundation%2Fhardhat-viem@2.0.6.patch"
58+
},
5559
"directories": {
5660
"test": "test"
5761
},
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/internal/clients.js b/internal/clients.js
2+
index 3f7782b745139ed99f95cc9c7974f4b686689383..13ecfbfe8a1cf44203cb25b8e3a873c01f2a2a67 100644
3+
--- a/internal/clients.js
4+
+++ b/internal/clients.js
5+
@@ -27,7 +27,7 @@ exports.innerGetTestClient = exports.getTestClient = exports.getWalletClient = e
6+
async function getParameters(chain, config) {
7+
const { isDevelopmentNetwork } = await Promise.resolve().then(() => __importStar(require("./chains")));
8+
const defaultParameters = isDevelopmentNetwork(chain.id)
9+
- ? { pollingInterval: 50, cacheTime: 0 }
10+
+ ? { pollingInterval: 50, cacheTime: 0, ccipRead: false }
11+
: {};
12+
const transportParameters = isDevelopmentNetwork(chain.id)
13+
? { retryCount: 0 }

patches/hardhat-deploy+0.12.4.patch

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git a/dist/src/DeploymentsManager.js b/dist/src/DeploymentsManager.js
2+
index 9ff5b84084cc6a6ce05e6d41efd2e95e868a0082..e9548f6711f4b516213230ffb33add491140cdf5 100644
3+
--- a/dist/src/DeploymentsManager.js
4+
+++ b/dist/src/DeploymentsManager.js
5+
@@ -733,8 +733,8 @@ class DeploymentsManager {
6+
// console.log("fetching " + scriptFilePath);
7+
try {
8+
delete require.cache[scriptFilePath]; // ensure we reload it every time, so changes are taken in consideration
9+
- deployFunc = require(scriptFilePath);
10+
- if (deployFunc.default) {
11+
+ deployFunc = await import(scriptFilePath);
12+
+ while (deployFunc.default) {
13+
deployFunc = deployFunc.default;
14+
}
15+
funcByFilePath[scriptFilePath] = deployFunc;

0 commit comments

Comments
 (0)