This is the tutorial I’ve been trying to follow here:
Flash Loan Arbitrage | Aave Flash Loan Tutorial - YouTube
I left off at like 27:25.
I intended to use Sepolia instead of Goerli because it looks like Sepolia is the network necessary to get test funds from AAVE now.
This is my env:
PRIVATE_KEY="0x$(private key hidden)"
INFURA_SEPOLIA_ENDPOINT="https://sepolia.infura.io/v3/(API key hidden)"
And this is my hardhat.config.js, and it appears that I’ve done everything absolutely right:
require("@nomicfoundation/hardhat-toolbox");
require("dotenv").config();
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.10",
networks: {
sepolia: {
url: process.env.INFURA_SEPOLIA_ENDPOINT,
accounts: [process.env.PRIVATE_KEY],
},
},
};
However, I’ve tried running this countless times:
npx hardhat run --network sepolia scripts/deployFlashLoan.js
And it’s failed every single time, this is the error I get:
Hardhat config is returning an empty config object, check the export from the config file if this is unexpected.
Learn more about configuring Hardhat at https://hardhat.org/config
Error HH100: Network sepolia doesn't exist
For more info go to https://hardhat.org/HH100 or run Hardhat with --show-stack-traces
To say I’ve tried countless means of finding a fix is an understatement. I had already done everything the uploader told me to do up to where I left off in the tutorial. I really don’t understand how he’s able to deploy the contract and not me!!!
Help me, please and thanks in advance.