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

[hardhat] network config adds incompatible flags #1026

Closed
BlinkyStitt opened this issue Mar 30, 2021 · 0 comments · Fixed by #1043
Closed

[hardhat] network config adds incompatible flags #1026

BlinkyStitt opened this issue Mar 30, 2021 · 0 comments · Fixed by #1043

Comments

@BlinkyStitt
Copy link
Collaborator

BlinkyStitt commented Mar 30, 2021

Environment information

  • brownie Version: 48d3f18
  • hardhat Version: 2.1.3-dtt.0 sha512-QWI3LbImf5vyshQzC2nGxzkgtMHsK5BovcWUMgNl3f/0QGCtVRLhTvkA6/FK0f8XhDkFCOHLsJmyRrt4Ao9grg==
  • solc Version: 0.8.3
  • Python Version: 3.9.2
  • OS: osx and linux

What was wrong?

I'm testing out swapping ganache-cli for hardhat@dtt on the argobytes repo.

I then ran brownie test --network mainnet-fork, but it fails because it tries to use this command:

Launching 'hardhat node --fork https://yournode --port 8575 --chainId 1 --hardfork istanbul'...

Neither --chainId, nor --hardfork are flags in hardhat. You can set them, but instead of with flags, they are set in hardhat.config.js

Workaround

In a separate terminal, run hardhat node --fork https://yournode

How can it be fixed?

Either don't pass these flags, or add them to hardhat.

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

Successfully merging a pull request may close this issue.

2 participants