错误HH100:网络Rinkeby不存在
这是我hardhat.config的上半
require("@nomiclabs/hardhat-waffle");
const dotenv = require("dotenv");
dotenv.config();
task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
const accounts = await hre.ethers.getSigners();
for (const account of accounts) {
console.log(account.address);
}
});
。
部分 .config
module.exports = {
solidity: "0.8.4",
networks: {
rinkeby: {
url: process.env.REACT_APP_RINKEBY_RPC_URL
accounts: [process.env.REACT_APP_PRIVATE_KEY],
},
},
etherscan: {
apiKey: process.env.REACT_APP_ETHERSCAN_KEY,
},
};
This is the top half of my hardhat.config
require("@nomiclabs/hardhat-waffle");
const dotenv = require("dotenv");
dotenv.config();
task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
const accounts = await hre.ethers.getSigners();
for (const account of accounts) {
console.log(account.address);
}
});
I keeping getting the same "Error HH100: Network rinkeby doesn't exist" when I run npx hardhat run scripts/deployPizzaHeadNFT --network rinkeby
Bottom half of hardhat.config
module.exports = {
solidity: "0.8.4",
networks: {
rinkeby: {
url: process.env.REACT_APP_RINKEBY_RPC_URL
accounts: [process.env.REACT_APP_PRIVATE_KEY],
},
},
etherscan: {
apiKey: process.env.REACT_APP_ETHERSCAN_KEY,
},
};
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查
0x $ {}
确保它在您的private_key
中。Check
0x${}
to be sure it's in yourPRIVATE_KEY
.