|
|
|
@ -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
|
|
|
|
|