@openzeppelin/hardhat-upgrades
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -19,7 +19,6 @@ "use strict"; | ||
async function callEtherscanApi(etherscan, params) { | ||
const parameters = new URLSearchParams({ ...params, apikey: etherscan.apiKey }); | ||
const parameters = { ...params, apikey: etherscan.apiKey }; | ||
const response = await (0, undici_1.request)(etherscan.apiUrl, { | ||
method: 'POST', | ||
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, | ||
body: parameters.toString(), | ||
query: parameters, | ||
}); | ||
@@ -26,0 +25,0 @@ if (!(response.statusCode >= 200 && response.statusCode <= 299)) { |
{ | ||
"name": "@openzeppelin/hardhat-upgrades", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "", | ||
@@ -60,3 +60,3 @@ "repository": "https://github.com/OpenZeppelin/openzeppelin-upgrades/tree/master/packages/plugin-hardhat", | ||
}, | ||
"gitHead": "54a2ed54a7367e595763e645aee21c4363b22482" | ||
"gitHead": "25dbafa315416a1a95f39793256476bd8131731c" | ||
} |
@@ -17,8 +17,6 @@ import { UpgradesError } from '@openzeppelin/upgrades-core'; | ||
export async function callEtherscanApi(etherscan: Etherscan, params: any): Promise<EtherscanResponseBody> { | ||
const parameters = new URLSearchParams({ ...params, apikey: etherscan.apiKey }); | ||
const parameters = { ...params, apikey: etherscan.apiKey }; | ||
const response = await request(etherscan.apiUrl, { | ||
method: 'POST', | ||
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, | ||
body: parameters.toString(), | ||
query: parameters, | ||
}); | ||
@@ -25,0 +23,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
393220
5976