From 63e2552aa2aae13b3803ed9aa85029978c59039f Mon Sep 17 00:00:00 2001 From: Aniket-Engg Date: Thu, 8 Jun 2023 13:20:31 +0530 Subject: [PATCH] optional in TS --- apps/etherscan/src/app/utils/scripts.ts | 2 +- .../workspace/src/lib/scripts/etherscan/verifyScript.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/etherscan/src/app/utils/scripts.ts b/apps/etherscan/src/app/utils/scripts.ts index f8e616d260..81eb2cfd9f 100644 --- a/apps/etherscan/src/app/utils/scripts.ts +++ b/apps/etherscan/src/app/utils/scripts.ts @@ -10,7 +10,7 @@ export const verifyScript = ` * @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) => { +export const verify = async (apikey: string, contractAddress: string, contractArguments: string, contractName: string, contractFile: string, chainRef?: number | string, isProxyContract?: boolean, expectedImplAddress?: string) => { const compilationResultParam = await remix.call('compilerArtefacts' as any, 'getCompilerAbstract', contractFile) console.log('verifying.. ' + contractName) // update apiKey and chainRef to verify contract on multiple networks 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 d20ceb69f7..4c76d0ebf4 100644 --- a/libs/remix-ui/workspace/src/lib/scripts/etherscan/verifyScript.ts +++ b/libs/remix-ui/workspace/src/lib/scripts/etherscan/verifyScript.ts @@ -9,7 +9,7 @@ * @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) => { +export const verify = async (apikey: string, contractAddress: string, contractArguments: string, contractName: string, contractFile: string, chainRef?: number | string, isProxyContract?: boolean, expectedImplAddress?: string) => { const compilationResultParam = await remix.call('compilerArtefacts' as any, 'getCompilerAbstract', contractFile) console.log('verifying.. ' + contractName) // update apiKey and chainRef to verify contract on multiple networks