Skip to content

Commit

Permalink
Link from unverified contracts to Sourcify to encourage verifying
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaw3d committed Jul 11, 2023
1 parent 643c9db commit aa3ed82
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .changelog/669.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Link from unverified contracts to Sourcify to encourage verifying
6 changes: 4 additions & 2 deletions src/app/components/ContractVerificationIcon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,13 @@ export const ContractVerificationIcon: FC<ContractVerificationIconProps> = ({ ac
{statusIcon[status]}
</StyledBox>
&nbsp; &nbsp;
{verified && !noLink && (
{!noLink && (
<Typography component="span" sx={{ fontSize: '12px', color: COLORS.brandExtraDark }}>
<Trans
t={t}
i18nKey="contract.verification.openInSourcify"
i18nKey={
verified ? 'contract.verification.openInSourcify' : 'contract.verification.verifyInSourcify'
}
components={{
SourcifyLink: (
<Link
Expand Down
3 changes: 2 additions & 1 deletion src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@
"title": "Verification",
"isVerified": "Verified",
"isNotVerified": "Unverified",
"openInSourcify": "Open in <SourcifyLink>Sourcify</SourcifyLink>"
"openInSourcify": "Open in <SourcifyLink>Sourcify</SourcifyLink>",
"verifyInSourcify": "Verify through <SourcifyLink>Sourcify</SourcifyLink>"
}
},
"nodes": {
Expand Down

0 comments on commit aa3ed82

Please sign in to comment.