Hardhat 3: Test hangs after entering keystore password (using configVariable + viem + Node) #6833
Replies: 1 comment
-
Hey @Henri-Guillet, this is a great catch. Thanks for raising it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm using Hardhat v3 alpha with Viem and Node.js.
I'm using the integrated keystore feature in Hardhat 3 to protect my RPC URL. I resolve it in my config using:
configVariable("BASE_URL")
When I run a script, everything works as expected:
I'm prompted for the keystore password,
I enter it in the terminal,
the script runs and deploys successfully.
However, when I run a test, I also get prompted for the password, I enter it — but then the test hangs, stuck right after this line:
const { viem, ignition, networkHelpers } = await network.connect("baseFork");
If I hardcode the RPC URL directly in my config instead of using the keystore + configVariable, the test works fine.
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions