DEV Community

Discussion on: How to Build a Full Stack NFT Marketplace - V2 (2022)

Collapse
 
gayatribit profile image
Gayatri Barhate

I got this error :
Error HH8: There's one or more errors in your config file:

  • Invalid account: #0 for network: mumbai - Expected string, received undefined This is hardhat.config.js file `/* hardhat.config.js */ require("@nomiclabs/hardhat-waffle")

module.exports = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
chainId: 1337
},
// unused configuration commented out for now
mumbai: {
url: "rpc-mumbai.matic.today",
accounts: [process.env.privateKey]
}
},
solidity: {
version: "0.8.9",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
}`