在 Etherscan 上验证合约失败 hardhat项目

问题遇到的现象和发生背景

hardhat项目中在 Etherscan 上验证合约失败

问题相关代码,请勿粘贴截图

hardhat.config.js文件

require("@nomiclabs/hardhat-waffle");
require('dotenv').config();
require("@nomiclabs/hardhat-etherscan");

// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more

module.exports = {
  solidity: "0.8.0",
  networks: {
    rinkeby: {
      url: 'my1',
      accounts: ['my2'],
    },
    mainnet: {
      chainId: 1,
      url: 'my3',
      accounts: ['my4'],
    },
  },
  etherscan: {
    // Your API key for Etherscan
    // Obtain one at https://etherscan.io/
    apiKey: "my5",
  }
};

运行结果及报错内容

img

我的解答思路和尝试过的方法
我想要达到的结果

img

你好,我是有问必答小助手,非常抱歉,本次您提出的有问必答问题,技术专家团超时未为您做出解答


本次提问扣除的有问必答次数,将会以问答VIP体验卡(1次有问必答机会、商城购买实体图书享受95折优惠)的形式为您补发到账户。


因为有问必答VIP体验卡有效期仅有1天,您在需要使用的时候【私信】联系我,我会为您补发。