poly-flash icon indicating copy to clipboard operation
poly-flash copied to clipboard

Hi please fix this problem

Open Asis754575 opened this issue 2 years ago • 5 comments

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

  • Invalid value {"forking":{"blockNumber":24539564}} for HardhatConfig.networks.hardhat - Expected a value of type HardhatNetworkConfig.

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 PS C:\Users\ASHISH\Music\poly-flash-main\poly-flash>

Asis754575 avatar Feb 10 '22 02:02 Asis754575

I'm also getting this issue as well:

  networks: {
    hardhat: {
      forking: {
        url: process.env.ALCHEMY_POLYGON_RPC_URL,
      },
    },
  },

Khalizo avatar Feb 15 '22 22:02 Khalizo

i'm facing the same problem

Amrani-Sohaib avatar Feb 22 '22 22:02 Amrani-Sohaib

it is weird but if you are getting this issue then try to paste the alchemy polygon rpc url value directly in the config file instead of using it through the env file.

royshahar avatar Mar 12 '22 18:03 royshahar

Did you rename the .env.example file to .env? If the file extension is not .env the test will not pass. Also make sure you are using a Mainnet Polygon url from Alchemy.

konjoinfinity avatar Mar 31 '22 19:03 konjoinfinity

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

  • Invalid value {"forking":{"blockNumber":24539564}} for HardhatConfig.networks.hardhat - Expected a value of type HardhatNetworkConfig.

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 PS C:\Users\ASHISH\Music\poly-flash-main\poly-flash>

Type private_key and alchemy_url values without double qoutes, then export your .env file.

iouae avatar Apr 01 '22 08:04 iouae