I am having an issue with smart contract deployment using hardhat. I don't see where is the error coming from. I have defined the .env
file with values and also correctly called those values using process.env
here is my hardhat.config file :
require("@nomicfoundation/hardhat-toolbox");
require('dotenv').config();
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
defaultNetwork: "goerli",
paths: {
artifacts: "./artifacts",
},
networks: {
goerli: {
chainId: 5,
},
goerli: {
url: process.env.API_URL ,
accounts: [process.env.PRIVATE_KEY] ,
}
},
solidity: "0.8.0",
};