Skip to content

Console task #5575

Closed
Closed
@kanej

Description

@kanej

Start a node console with the HardhatRuntimeEnvironment initialized and attached to the global scope:

hardhat console
> console.log(hre.config.solidity)
// "0.8.24"

For inspiration consider the HHv2 version of console:

task(TASK_CONSOLE, "Opens a hardhat console")

The v3 version of the run task is likely a good comparison for integration testing.

We should consider accepting a --config parameter to allow specifying a path to an alternative hardhat.config.{js,ts} file.

Metadata

Metadata

Assignees

Labels

status:readyThis issue is ready to be worked onv-nextA Hardhat v3 development task

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions