Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[hardhat-etherscan]: Different config field for PolygonScan API key #1795

Closed
PaulRBerg opened this issue Aug 14, 2021 · 2 comments
Closed

[hardhat-etherscan]: Different config field for PolygonScan API key #1795

PaulRBerg opened this issue Aug 14, 2021 · 2 comments
Assignees

Comments

@PaulRBerg
Copy link
Contributor

Use Case

When using the hardhat-etherscan plugin in a Hardhat project that deploys both to an Etherscan website (like Ethereum Mainnet or Rinkeby testnet) and PolygonScan, I am often running into the following error:

Invalid API key.

The reason is that the API keys for etherscan.io and polygonscan.com are not interchangeable.

Solution

Add a polygonApiKey or polygonScanApiKey field to the etherscan configuration object.

@shresthagrawal
Copy link

I am facing similar issues as well. I have to keep on changing the keys before deployment

@PaulRBerg
Copy link
Contributor Author

Closing this, duplicate of #1448.

@fvictorio fvictorio self-assigned this Nov 27, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants