Skip to content

Commit 17d4eb3

Browse files
feat: add support for overriding deploy path in Hardhat configuration to enhance deployment flexibility
1 parent 83b6461 commit 17d4eb3

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

solidity/ecdsa/hardhat.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ const TASK_CHECK_ACCOUNTS_COUNT = "check-accounts-count"
2323

2424
/** Prefer sibling ../random-beacon/export when present (monorepo) so deploy scripts match source, not stale npm. */
2525
function resolveRandomBeaconExport(subdir: "deploy" | "artifacts"): string {
26+
if (subdir === "deploy") {
27+
const override = path.join(
28+
__dirname,
29+
"external/random-beacon/export/deploy"
30+
)
31+
if (fs.existsSync(override)) {
32+
return override
33+
}
34+
}
2635
const local = path.join(__dirname, "../random-beacon/export", subdir)
2736
if (fs.existsSync(local)) {
2837
return local

0 commit comments

Comments
 (0)