Closed Abhishekkochar closed 4 days ago
Issue happens when try to fork the chain.
Hey @Abhishekkochar, I tested a simplified version of your Hardhat config and it seems to work as expected. Here’s the configuration I used:
const forkingConfig = {
url: `your-alchemy-url`,
blockNumber: 6378120,
};
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.6.10",
settings: { optimizer: { enabled: true, runs: 200 } },
},
{
version: "0.8.11",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
networks: {
hardhat: {
allowUnlimitedContractSize: false,
forking: forkingConfig,
gas: 12000000,
blockGasLimit: 12000000,
},
},
};
Could you try again with this configuration and let me know if it works for you? If not, could you provide any extra information or share a link to the repo (if public)? Also, which version of Hardhat are you using?
I'm closing this for bookkeeping purposes, but if you can provide the requested details, please let us know, and we’ll reopen it. Thanks!
I'm trying to fork the sepolia testnet using alchemy.
Following is the hardhat.config.ts file:
All the .env variables are valid and FORK has been set to true. Below is the error: