Skip to content

Commit 4768d7d

Browse files
committed
fix: resolve fork config in node task
1 parent 5bc9b04 commit 4768d7d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

v-next/hardhat/src/internal/builtin-plugins/node/task-action.ts

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { HardhatError } from "@ignored/hardhat-vnext-errors";
55
import { exists } from "@ignored/hardhat-vnext-utils/fs";
66
import chalk from "chalk";
77

8+
import { resolveConfigurationVariable } from "../../core/configuration-variables.js";
89
import { resolveForkingConfig } from "../network-manager/config-resolution.js";
910

1011
import { JsonRpcServerImplementation } from "./json-rpc/server.js";
@@ -79,6 +80,8 @@ const nodeAction: NewTaskActionFunction<NodeActionArguments> = async (
7980
: undefined),
8081
},
8182
hre.config.paths.cache,
83+
(strOrConfigVar) =>
84+
resolveConfigurationVariable(hre.hooks, strOrConfigVar),
8285
);
8386
} else if (args.forkBlockNumber !== -1) {
8487
// NOTE: We could make the error more specific here.

0 commit comments

Comments
 (0)