poly-flash
poly-flash copied to clipboard
Hi please fix this problem
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>
I'm also getting this issue as well:
networks: {
hardhat: {
forking: {
url: process.env.ALCHEMY_POLYGON_RPC_URL,
},
},
},
i'm facing the same problem
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.
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.
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.