yuichiroaoki / poly-flash

Flashloan on Polygon
https://yuichiroaoki.medium.com/no-flashloan-fee-with-dodo-cc78215d7f93
MIT License
291 stars 169 forks source link

Hi please fix this problem #30

Open Asis754575 opened 2 years ago

Asis754575 commented 2 years ago

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

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>

Khalizo commented 2 years ago

I'm also getting this issue as well:

  networks: {
    hardhat: {
      forking: {
        url: process.env.ALCHEMY_POLYGON_RPC_URL,
      },
    },
  },
Amrani-Sohaib commented 2 years ago

i'm facing the same problem

royshahar commented 2 years ago

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.

konjoinfinity commented 2 years ago

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.

iouae commented 2 years ago

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.