-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
_priority:P0Critical priorityCritical priority
Description
Version of Hardhat
3.0.7
What happened?
Running TypeScript tests against a forked network using Node.js test runner & Viem results in the prompt for Hardhat's keystore password to not hide the password, and seems to hang with no error:

When testing using Mocha & Ethers.js, it seems to work as expected and doesn't hang:

Note both examples above were done with a new Hardhat project and only the hardhat.config.ts was edited with a remote network.
Minimal reproduction steps
- Create a new Hardhat project with
npx hardhat --init
. - Upon asking what type of project to initialize, select "A TypeScript Hardhat project using Node Test Runner and Viem".
- Install the necessary dependencies. For background, this is the command that is ran:
npm install --save-dev "hardhat@^3.0.7" "@nomicfoundation/hardhat-toolbox-viem@^5.0.0" "@nomicfoundation/hardhat-ignition@^3.0.0" "@types/node@^22.8.5" "forge-std@foundry-rs/forge-std#v1.9.4" "typescript@~5.8.0" "viem@^2.30.0"
- Edit hardhat.config.ts with a remote network:
hardhatMainnet: {
type: "edr-simulated",
chainType: "l1",
forking: {
url: configVariable("ALCHEMY_RPC_URL"),
blockNumber: 23284000,
enabled: true,
}
},
- Run tests
npx hardhat test --network hardhatMainnet
Search terms
No response
Metadata
Metadata
Assignees
Labels
_priority:P0Critical priorityCritical priority
Type
Projects
Status
In Progress