0xmetaschool/Learning-Projects

Problem in Sepolia network

Opened this issue · 1 comments

After I compile deployment file in deploy.js file and run npx hardhat run scripts/deploy.js --network sepolia command its shows me "Error HH100: Sepolia Network doesn't exist".
How to solve this??

You need to update your network in the hardhat.config.js file. Here's the code :

    sepolia: {
      url: "https://sepolia.infura.io/v3/<your_infura_key>",
      accounts: privateKey(),
    }

Create_new_apikey

Add your infura key by creating a project on Infura and enable Sepolia under Ethereum if it's not already. Now it shouldn't cause any problems.
Enable_sepolia