Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6ed7bbb

Browse files
authoredAug 14, 2024··
feat: expose hre fields in the console context
1 parent 511a3bb commit 6ed7bbb

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 = config;
50+
replServer.context.tasks = tasks;
51+
replServer.context.globalOptions = globalOptions;
52+
replServer.context.hooks = hooks;
53+
replServer.context.interruptions = interruptions;
4954

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

0 commit comments

Comments
 (0)
Please sign in to comment.