[英]Error while deploying a smart contract to Mumbai testnet through Hardhat
[英]Error in trying to compile my contract through the hardhat feature
請解釋為什么當我嘗試通過 hardhat 功能編譯我的合約時收到此錯誤消息以及我如何解決它。
下面是 hardhat.config.js 腳本
require("@nomiclabs/hardhat-waffle");
require('@nomiclabs/hardhat-ethers');
module.exports = {
solidity: '0.8.0',
network: {
ropsten: {
url: "https://eth-ropsten.alchemyapi.io/v2/Bn5tm9fX90ET1hKwb76lKJB0rzU3JBi2",
accounts: ["63b598044c3cce8d656a3db5c.........c64beb17eb1687aebbefc5cac8a"]
}
}
}
下面是每當我嘗試使用運行編譯它時我不斷遇到的錯誤
PS C:\Users\Temitope\Desktop\kredar\smart_contract> npx hardhat run scripts/deploy.js --network ropsten
Error HH100: Network ropsten doesn't exist
For more info go to https://hardhat.org/HH100 or run Hardhat with --show-stack-traces
PS C:\Users\Temitope\Desktop\kredar\smart_contract>
謝謝。
通過查看您的配置,我猜network
應該是networks
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.