set-protocol-v2 icon indicating copy to clipboard operation
set-protocol-v2 copied to clipboard

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

Open skolaautomat opened this issue 3 years ago • 2 comments

Hi, I downloaded the code and tried to compile it but I experience many issues in the default configuration for developers. It would be great if you can bring more detailed steps in the Readme file.

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

  • Invalid value {"url":"https://kovan.infura.io/v3/cccccccccccccccccccccccccccccccc","accounts":["0xundefined"]} for HardhatConfig.networks.kovan - Expected a value of type HttpNetworkConfig.
  • Invalid value {"url":"https://mainnet.infura.io/v3/cccccccccccccccccccccccccccccccc","accounts":["0xundefined"]} for HardhatConfig.networks.staging_mainnet - Expected a value of type HttpNetworkConfig.
  • Invalid value {"url":"https://mainnet.infura.io/v3/cccccccccccccccccccccccccccccccc","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/

For more info go to https://hardhat.org/HH8 or run Hardhat with --show-stack-traces error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

skolaautomat avatar Jun 29 '21 18:06 skolaautomat

I am facing same issue

viratjshah avatar Aug 06 '21 14:08 viratjshah

@skolaautomat @viratjshah I was just able to get things compiled and tests passing. I did the following:

For Mac, install solidity 0.6.10 as per https://docs.soliditylang.org/en/v0.8.7/installing-solidity.html, git hash taken from the Set Protocol Readme (https://github.com/SetProtocol/set-protocol-v2/blob/master/README.md)

brew update
brew upgrade
brew tap ethereum/ethereum
brew install solidity
git clone https://github.com/ethereum/homebrew-ethereum.git
cd homebrew-ethereum
git checkout 06d13a8499801dc3ea4f19b2d24ed2eeb3072ebb
brew unlink solidity
brew install solidity.rb

Then I essentially followed the steps shown in the circleci yaml file (https://github.com/SetProtocol/set-protocol-v2/blob/master/.circleci/config.yml):

git clone https://github.com/SetProtocol/set-protocol-v2.git
cd set-protocol-v2
cp .env.default .env
yarn install
yarn build
yarn chain # in a different terminal window
yarn test
yarn coverage

shankinson avatar Aug 14 '21 16:08 shankinson