NomicFoundation / hardhat

Hardhat is a development environment to compile, deploy, test, and debug your Ethereum software.
https://hardhat.org
Other
7.17k stars 1.38k forks source link

wrong path in Lock.js for hardhat-network-helpers #5547

Closed gilseg10 closed 20 hours ago

gilseg10 commented 1 month ago

Version of Hardhat

2.22.6

What happened?

I tried to run npx hardhat test and I got errors. Turns out that the location of hardhat-network-helpers is not as specified in Lock.js

Minimal reproduction steps

Instead of: const { time, loadFixture, } = require("@nomicfoundation/hardhat-toolbox/network-helpers");

Should be: const { time, loadFixture, } = require("@nomicfoundation/hardhat-network-helpers");

Search terms

No response

schaable commented 1 month ago

Hi @gilseg10!

The hardhat-toolbox re-exports the network helpers from /src/network-helpers.ts. I just double-checked and npx hardhat test runs without issues on my end.

Could you please share the error you're seeing? Additionally, have you made any modifications to your Lock.js file?

schaable commented 20 hours ago

I'm closing this for bookkeeping purposes, but if you can provide the requested details, please let us know, and we’ll reopen it. Thanks!