From 005cb99cb622ed5f577db0dda5819d32e1bd133f Mon Sep 17 00:00:00 2001 From: Manuel Wedler Date: Wed, 27 Nov 2024 15:48:03 +0100 Subject: [PATCH] Verification plugin: Use a copy button for links to Blockscout Hotfix for the links as they were not working, see https://github.com/ethereum/sourcify/issues/1530 --- .../src/app/components/AccordionReceipt.tsx | 4 ++-- apps/contract-verification/src/app/views/LookupView.tsx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/contract-verification/src/app/components/AccordionReceipt.tsx b/apps/contract-verification/src/app/components/AccordionReceipt.tsx index 7aedb3e7f1..90bc0e9052 100644 --- a/apps/contract-verification/src/app/components/AccordionReceipt.tsx +++ b/apps/contract-verification/src/app/components/AccordionReceipt.tsx @@ -88,7 +88,7 @@ const ReceiptsBody = ({ receipts }: { receipts: VerificationReceipt[] }) => { return ( diff --git a/apps/contract-verification/src/app/views/LookupView.tsx b/apps/contract-verification/src/app/views/LookupView.tsx index 120dd1574c..00de368cac 100644 --- a/apps/contract-verification/src/app/views/LookupView.tsx +++ b/apps/contract-verification/src/app/views/LookupView.tsx @@ -9,6 +9,7 @@ import { getVerifier } from '../Verifiers' import { useNavigate } from 'react-router-dom' import { VerifyFormContext } from '../VerifyFormContext' import { useSourcifySupported } from '../hooks/useSourcifySupported' +import { CopyToClipboard } from '@remix-ui/clipboard' export const LookupView = () => { const { settings, clientInstance } = useContext(AppContext) @@ -140,7 +141,7 @@ export const LookupView = () => { {lookupResults[verifierId].status} {' '} - {!!lookupResults[verifierId].lookupUrl && } + {!!lookupResults[verifierId].lookupUrl && verifierId === 'Blockscout' ? : !!lookupResults[verifierId].lookupUrl && } {!!lookupResults[verifierId].sourceFiles && lookupResults[verifierId].sourceFiles.length > 0 && (