Do I need to explicity import hardhat-network-helpers #3789
Answered
by
fvictorio
dtnwen
asked this question in
Troubleshooting
-
Beta Was this translation helpful? Give feedback.
Answered by
fvictorio
Mar 27, 2023
Replies: 1 comment
-
Hi @dtnwen! This is a good question. Yes, you have to import it in each test file, and importing it in the config doesn't have any effect. The reason is that this package, unlike most other packages we have, is not a Hardhat plugin but a standalone thing. We've considered turning it into a plugin, so that you can import in the config and have something added to the HRE (maybe |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dtnwen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @dtnwen! This is a good question. Yes, you have to import it in each test file, and importing it in the config doesn't have any effect. The reason is that this package, unlike most other packages we have, is not a Hardhat plugin but a standalone thing.
We've considered turning it into a plugin, so that you can import in the config and have something added to the HRE (maybe
hre.helpers
). But for now you have to use it as a utils package, similar to howchai
is imported in each test file.