diff --git a/apps/etherscan/src/app/app.tsx b/apps/etherscan/src/app/app.tsx index 19323fff8d..77911a9c05 100644 --- a/apps/etherscan/src/app/app.tsx +++ b/apps/etherscan/src/app/app.tsx @@ -103,19 +103,21 @@ const App = () => { for (const item of receiptsNotVerified) { await new Promise(r => setTimeout(r, 500)) // avoid api rate limit exceed. let status - if (item.isProxyContract) + if (item.isProxyContract) { status = await getProxyContractReceiptStatus( item.guid, apiKey, getEtherScanApi(networkId) ) - else + status.details = status.result + status.result = 'Successfully Updated' + } else status = await getReceiptStatus( item.guid, apiKey, getEtherScanApi(networkId) ) - if (status.result === "Pass - Verified" || status.result === "Already Verified") { + if (status.result === "Pass - Verified" || status.result === "Already Verified" || status.result === "Successfully Updated") { newReceipts = newReceipts.map((currentReceipt: Receipt) => { if (currentReceipt.guid === item.guid) { return { diff --git a/apps/etherscan/src/app/types/Receipt.ts b/apps/etherscan/src/app/types/Receipt.ts index 28d104622c..2dd501651d 100644 --- a/apps/etherscan/src/app/types/Receipt.ts +++ b/apps/etherscan/src/app/types/Receipt.ts @@ -1,4 +1,4 @@ -export type ReceiptStatus = "Pending in queue" | "Pass - Verified" | "Already Verified" | "Max rate limit reached" +export type ReceiptStatus = "Pending in queue" | "Pass - Verified" | "Already Verified" | "Max rate limit reached" | "Successfully Updated" export interface Receipt { guid: string diff --git a/apps/etherscan/src/app/views/VerifyView.tsx b/apps/etherscan/src/app/views/VerifyView.tsx index f7d16c22be..2f72bbbb36 100644 --- a/apps/etherscan/src/app/views/VerifyView.tsx +++ b/apps/etherscan/src/app/views/VerifyView.tsx @@ -226,7 +226,7 @@ export const VerifyView: React.FC = ({
- +