From 178d448bbf2329ae70ab7d8f9a808011d0fc23b5 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 10 Mar 2022 17:59:53 +0100 Subject: [PATCH] fix label --- libs/remix-core-plugin/src/lib/helpers/fetch-etherscan.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/remix-core-plugin/src/lib/helpers/fetch-etherscan.ts b/libs/remix-core-plugin/src/lib/helpers/fetch-etherscan.ts index 25ddfc44ef..32264c32fa 100644 --- a/libs/remix-core-plugin/src/lib/helpers/fetch-etherscan.ts +++ b/libs/remix-core-plugin/src/lib/helpers/fetch-etherscan.ts @@ -10,7 +10,7 @@ export const fetchContractFromEtherscan = async (plugin, network, contractAddres // etherscan api doc https://docs.etherscan.io/api-endpoints/contracts if (data.message === 'OK' && data.status === "1") { if (data.result.length) { - if (data.result[0].SourceCode === '') throw new Error('contract not verified') + if (data.result[0].SourceCode === '') throw new Error('contract not verified in Etherscan') if (data.result[0].SourceCode.startsWith('{')) { data.result[0].SourceCode = JSON.parse(data.result[0].SourceCode.replace(/(?:\r\n|\r|\n)/g, '').replace(/^{{/,'{').replace(/}}$/,'}')) }