better comment

pull/3102/head
yann300 2 years ago committed by Aniket
parent 29345571bc
commit 40ad95ddfe
  1. 2
      apps/etherscan/src/app/utils/scripts.ts
  2. 2
      apps/etherscan/src/app/utils/verify.ts

@ -2,7 +2,7 @@ export const verifyScript = `
/** /**
* @param {string} apikey - etherscan api key. * @param {string} apikey - etherscan api key.
* @param {string} contractAddress - Address of the contract to verify. * @param {string} contractAddress - Address of the contract to verify.
* @param {string} contractArguments - Parameters used in the contract constructor during the initial deployment. * @param {string} contractArguments - Parameters used in the contract constructor during the initial deployment. It should be the hex encoded value.
* @param {string} contractName - Name of the contract * @param {string} contractName - Name of the contract
* @param {string} contractFile - File where the contract is located * @param {string} contractFile - File where the contract is located
* @returns {{ guid, status, message, succeed }} verification result * @returns {{ guid, status, message, succeed }} verification result

@ -76,7 +76,7 @@ export const verify = async (
sourceCode: JSON.stringify(jsonInput), sourceCode: JSON.stringify(jsonInput),
contractname: fileName + ':' + contractName, contractname: fileName + ':' + contractName,
compilerversion: `v${contractMetadataParsed.compiler.version}`, // see http://etherscan.io/solcversions for list of support versions compilerversion: `v${contractMetadataParsed.compiler.version}`, // see http://etherscan.io/solcversions for list of support versions
constructorArguements: contractArgumentsParam, // if applicable constructorArguements: contractArgumentsParam ? contractArgumentsParam.replace('0x', '') : '', // if applicable
} }
const body = new FormData() const body = new FormData()

Loading…
Cancel
Save