小编Dom*_*nik的帖子

安全帽配置错误 HH100:网络 goerli 不存在

我正在尝试在 Goerli 上部署合约,但我不断收到错误Error HH100: Network goerli doesn't exist

这是我的hardhat.config.ts

require("dotenv").config();
import { task } from 'hardhat/config';
import '@nomiclabs/hardhat-waffle';
import '@typechain/hardhat'
import '@nomiclabs/hardhat-ethers';
import { HardhatUserConfig } from "hardhat/config";


const PrivateKey = "b427...";

const config: HardhatUserConfig = {
  solidity: {
        version: '0.8.0',
        },
  networks: {
        goerli: {
                chainId: 5,
                url: "https://goerli.infura.io/v3/309820d3955640ec9cda472d998479ef",
                accounts: [PrivateKey],
        },
  },
 };

// This is a sample Hardhat task. To learn how to create your own go to
// https://hardhat.org/guides/create-task.html
task('accounts', 'Prints the list of …
Run Code Online (Sandbox Code Playgroud)

config typescript ethereum hardhat

8
推荐指数
1
解决办法
2万
查看次数

标签 统计

config ×1

ethereum ×1

hardhat ×1

typescript ×1