Skip to content

Commit c23b974

Browse files
committed
feat: expose hre fields in the console context
1 parent 511a3bb commit c23b974

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

+5
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ const consoleAction: NewTaskActionFunction<ConsoleActionArguments> = async (
4646

4747
// Add the Hardhat Runtime Environment to the REPL context
4848
replServer.context.hre = hre;
49+
replServer.context.config = hre.config;
50+
replServer.context.tasks = hre.tasks;
51+
replServer.context.globalOptions = hre.globalOptions;
52+
replServer.context.hooks = hre.hooks;
53+
replServer.context.interruptions = hre.interruptions;
4954

5055
// Set up the REPL history file if the historyPath has been set
5156
if (historyPath !== undefined) {

0 commit comments

Comments
 (0)