Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to change hardhat location? #42

Open
Taewa opened this issue Oct 10, 2022 · 0 comments
Open

Is it possible to change hardhat location? #42

Taewa opened this issue Oct 10, 2022 · 0 comments

Comments

@Taewa
Copy link

Taewa commented Oct 10, 2022

Hi,
I wonder if I can can set hardhat location with vertigo.
The problem I am facing is that my project structure is a bit unusual.

node_modules
project1
  contracts
    SomeContract.sol
  test
    SomeContact.test.js
project2
  contracts
    SomeContract2.sol
  test
    SomeContact2.test.js

As you can see the node_modules is not in the same level as contracts directory.
When I am in project1 directory, I run vertigo run --hardhat-parallel 8, I get the following error:

[-] Encountered an error while running the framework's test command:
Error HH12: Trying to use a non-local installation of Hardhat, which is not supported.

Then I created a new project structure. It's almost the same as above but node_modules is in the project1.

project1
  node_modules
  contracts
    SomeContract.sol
  test
    SomeContact.test.js

Then it works.

[+] Survivors
[*] Done!

By this experiment, I assume that vertigo can't find local hardhat.
Would it be possible to set local hardhat?
Or please let me know If I am pointing in wrong direction of the problem.

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant