-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Unable to fork sepolia testnet #5554
Comments
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:
The text was updated successfully, but these errors were encountered: