-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Description
When creating and deploying a new smart contract, the etherscan verification failed as it is using the v1 entrypoint, which is now deprecated.
To reproduce, we can try to deploy and verify directly a smart contract by doing
npx hardhat deploy --network sepolia
npx hardhat verify --network sepolia 0x3845b23065200e953ba2768f96C6B61B6AE9D381And got the following logs
[INFO] Sourcify Verification Skipped: Sourcify verification is currently disabled. To enable it, add the following entry to your Hardhat configuration:
sourcify: {
enabled: true
}
Or set 'enabled' to false to hide this message.
For more information, visit https://hardhat.org/hardhat-runner/plugins/nomicfoundation-hardhat-verify#verifying-on-sourcify
[WARNING] Network and explorer-specific api keys are deprecated in favour of the new Etherscan v2 api. Support for v1 is expected to end by May 31st, 2025. To migrate, please specify a single Etherscan.io api key the apiKey config value.
hardhat-verify found one or more errors during the verification process:
Etherscan:
You are using a deprecated V1 endpoint, switch to Etherscan API V2 using https://docs.etherscan.io/v2-migrationWhere the etherscan verification endpoint failed.
We need to migrate to the new endpoint
Metadata
Metadata
Assignees
Labels
No labels