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

Add getting started section to README #136

Closed
wants to merge 2 commits into from

Conversation

rootulp
Copy link
Contributor

@rootulp rootulp commented Sep 7, 2021

Resolves #106

I needed to do these three steps to be able to run yarn in this package. Without these steps, I encountered:

$ npx hardhat compile
Error HH8: There's one or more errors in your config file:

  * Invalid value {"url":"https://kovan.infura.io/v3/undefined","accounts":["0xundefined"]} for HardhatConfig.networks.kovan - Expected a value of type HttpNetworkConfig.
  * Invalid value {"url":"https://mainnet.infura.io/v3/undefined","accounts":["0xundefined"]} for HardhatConfig.networks.staging_mainnet - Expected a value of type HttpNetworkConfig.
  * Invalid value {"url":"https://mainnet.infura.io/v3/undefined","accounts":["0xundefined"]} for HardhatConfig.networks.production - Expected a value of type HttpNetworkConfig.

To learn more about Hardhat's configuration, please go to https://hardhat.org/config/

I needed to do these three steps to be able to run `yarn` in this package. Without these steps, I encountered:

```
$ npx hardhat compile
Error HH8: There's one or more errors in your config file:

  * Invalid value {"url":"https://kovan.infura.io/v3/undefined","accounts":["0xundefined"]} for HardhatConfig.networks.kovan - Expected a value of type HttpNetworkConfig.
  * Invalid value {"url":"https://mainnet.infura.io/v3/undefined","accounts":["0xundefined"]} for HardhatConfig.networks.staging_mainnet - Expected a value of type HttpNetworkConfig.
  * Invalid value {"url":"https://mainnet.infura.io/v3/undefined","accounts":["0xundefined"]} for HardhatConfig.networks.production - Expected a value of type HttpNetworkConfig.

To learn more about Hardhat's configuration, please go to https://hardhat.org/config/
```
@bweick
Copy link
Contributor

bweick commented Sep 7, 2021

This is good! One thing I'd add though is the error you got there seems to be related to a bad infura value? Alchemy is required for mainnet fork testing.

Did putting in an Alchemy key help solve this error? Maybe we can expand the steps to include getting an infura key?

@rootulp
Copy link
Contributor Author

rootulp commented Sep 7, 2021

Did putting in an Alchemy key help solve this error?

Yep. Although agreed with your call out that the error explicitly states Infura so I'm not sure why my .env without a valid Infura token no longer encounters this error. I definitely don't mind adding steps for Infura as well. Will follow up with another commit

@rootulp rootulp closed this Jan 16, 2023
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 this pull request may close these issues.

Error HH8: There's one or more errors in your config file:
2 participants