Skip to content

Unable to verify contract #5193

Discussion options

You must be logged in to vote

@Mayank-Pandey1 you have wrong condition here;

if (
    !developmentChains.includes(
        network.name && process.env.ETHERSCAN_API_KEY
    )
) {
    await verify(ourToken.address, [INITIAL_SUPPLY]);
}

it should be like this;

if (
    !developmentChains.includes(network.name)  && process.env.ETHERSCAN_API_KEY
) {
    await verify(ourToken.address, [INITIAL_SUPPLY]);
}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Mayank-Pandey1
Comment options

@Mayank-Pandey1
Comment options

@alymurtazamemon
Comment options

Answer selected by Mayank-Pandey1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants