Skip to content

Great plugin!, but fails on etherscan-verify #12

@iangregsondev

Description

@iangregsondev

Hi,

Great plugin, although etherscan fails - i presume this is because etherscan-verify plugin isn't in the same pipeline or something so it doesn't get run - so hence the files are different ?

The only thing I was doing was removing "console.log"

  preprocess: {
    eachLine: removeConsoleLog((hre) => hre.network.name !== 'hardhat' && hre.network.name !== 'localhost'),
  },

This is the error (npx hardhat etherscan-verify --network bsc_mainnet)

Failed to verify contract Token: NOTOK, Fail - Unable to verify
{
  "apikey": "XXXXXX",
  "module": "contract",
  "action": "verifysourcecode",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions