From 3c34abfb62ca978edd45ce04befc39cbb508433d Mon Sep 17 00:00:00 2001 From: Aniket-Engg Date: Thu, 8 Jun 2023 13:15:41 +0530 Subject: [PATCH] optional param --- apps/etherscan/src/app/utils/scripts.ts | 6 +++--- .../workspace/src/lib/scripts/etherscan/verifyScript.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/etherscan/src/app/utils/scripts.ts b/apps/etherscan/src/app/utils/scripts.ts index 0e880d9513..f8e616d260 100644 --- a/apps/etherscan/src/app/utils/scripts.ts +++ b/apps/etherscan/src/app/utils/scripts.ts @@ -5,9 +5,9 @@ export const verifyScript = ` * @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} contractFile - File where the contract is located - * @param {number | string} chainRef - Network chain id or API URL - * @param {boolean} isProxyContract - true, if contract is a proxy contract - * @param {string} expectedImplAddress - Implementation contract address, in case of proxy contract verification + * @param {number | string} chainRef - Network chain id or API URL (optional) + * @param {boolean} isProxyContract - true, if contract is a proxy contract (optional) + * @param {string} expectedImplAddress - Implementation contract address, in case of proxy contract verification (optional) * @returns {{ guid, status, message, succeed }} verification result */ export const verify = async (apikey: string, contractAddress: string, contractArguments: string, contractName: string, contractFile: string, chainRef: number | string, isProxyContract: boolean, expectedImplAddress: string) => { diff --git a/libs/remix-ui/workspace/src/lib/scripts/etherscan/verifyScript.ts b/libs/remix-ui/workspace/src/lib/scripts/etherscan/verifyScript.ts index 9b0105f2aa..d20ceb69f7 100644 --- a/libs/remix-ui/workspace/src/lib/scripts/etherscan/verifyScript.ts +++ b/libs/remix-ui/workspace/src/lib/scripts/etherscan/verifyScript.ts @@ -4,9 +4,9 @@ * @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} contractFile - File where the contract is located - * @param {number | string} chainRef - Network chain id or API URL - * @param {boolean} isProxyContract - true, if contract is a proxy contract - * @param {string} expectedImplAddress - Implementation contract address, in case of proxy contract verification + * @param {number | string} chainRef - Network chain id or API URL (optional) + * @param {boolean} isProxyContract - true, if contract is a proxy contract (optional) + * @param {string} expectedImplAddress - Implementation contract address, in case of proxy contract verification (optional) * @returns {{ guid, status, message, succeed }} verification result */ export const verify = async (apikey: string, contractAddress: string, contractArguments: string, contractName: string, contractFile: string, chainRef: number | string, isProxyContract: boolean, expectedImplAddress: string) => {