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

Hi please fix this problem #30

Open
Asis754575 opened this issue Feb 10, 2022 · 5 comments
Open

Hi please fix this problem #30

Asis754575 opened this issue Feb 10, 2022 · 5 comments

Comments

@Asis754575
Copy link

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>

@Khalizo
Copy link

Khalizo commented Feb 15, 2022

I'm also getting this issue as well:

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

@Amrani-Sohaib
Copy link

i'm facing the same problem

@royshahar
Copy link

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
Copy link

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
Copy link

iouae commented Apr 1, 2022

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.

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

No branches or pull requests

6 participants