Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/witty-zebras-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@openzeppelin/hardhat-upgrades': patch
---

Support contract verification via etherscan V2 API.
- **Potentially breaking changes**:
- Changes peer dependencies to `[email protected]` and `@nomicfoundation/[email protected]`
8 changes: 4 additions & 4 deletions packages/plugin-hardhat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
},
"devDependencies": {
"@nomicfoundation/hardhat-ethers": "^3.0.5",
"@nomicfoundation/hardhat-verify": "^2.0.0",
"@nomicfoundation/hardhat-verify": "^2.0.14",
"@openzeppelin/contracts": "5.3.0",
"@openzeppelin/contracts-upgradeable": "5.3.0",
"@types/mocha": "^7.0.2",
"ava": "^6.0.0",
"fgbg": "^0.1.4",
"hardhat": "^2.19.1",
"hardhat": "^2.24.1",
"promisified": "^0.5.0",
"proxyquire": "^2.1.3",
"rimraf": "^5.0.0",
Expand All @@ -46,9 +46,9 @@
},
"peerDependencies": {
"@nomicfoundation/hardhat-ethers": "^3.0.0",
"@nomicfoundation/hardhat-verify": "^2.0.0",
"@nomicfoundation/hardhat-verify": "^2.0.14",
"ethers": "^6.6.0",
"hardhat": "^2.0.2"
"hardhat": "^2.24.1"
},
"peerDependenciesMeta": {
"@nomicfoundation/hardhat-verify": {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-hardhat/src/utils/etherscan-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { Etherscan } from '@nomicfoundation/hardhat-verify/etherscan';
* @returns The Etherscan API response
*/
export async function callEtherscanApi(etherscan: Etherscan, params: any): Promise<EtherscanResponseBody> {
const parameters = { ...params, apikey: etherscan.apiKey };
const parameters = { ...params, apikey: etherscan.apiKey, chainid: etherscan.chainId };
const response = await request(etherscan.apiUrl, {
method: 'POST',
query: parameters,
Expand Down
Loading
Loading