diff --git a/views/accounts/tabs/ContractCodeTab/Overview.tsx b/views/accounts/tabs/ContractCodeTab/Overview.tsx index d986b82d..6fe711fb 100644 --- a/views/accounts/tabs/ContractCodeTab/Overview.tsx +++ b/views/accounts/tabs/ContractCodeTab/Overview.tsx @@ -1,8 +1,6 @@ import { useMobileLayout } from '@astraprotocol/astra-ui' import clsx from 'clsx' import Row from 'components/Grid/Row' -import { LinkText } from 'components/Typography/LinkText' -import { LinkMaker } from 'utils/helper' import styles from './style.module.scss' interface Props { @@ -12,20 +10,6 @@ const ContractCodeOverview = ({ contractCode }: Props) => { const { isMobile } = useMobileLayout() return (
-
- Contract is not verified.{' '} - {contractCode.SameBytecodeAddress && ( - <> - However, we found a verified contract with the same bytecode{' '} - - {contractCode.SameBytecodeAddress} - - - )} - . All metadata displayed below is from that contract. In order to verify current contract, click Verify - & Publish button. -
-
Compiler Version: diff --git a/views/accounts/tabs/ContractCodeTab/index.tsx b/views/accounts/tabs/ContractCodeTab/index.tsx index f2a5c3b6..9f58bb09 100644 --- a/views/accounts/tabs/ContractCodeTab/index.tsx +++ b/views/accounts/tabs/ContractCodeTab/index.tsx @@ -2,8 +2,10 @@ import { NormalButton, Spinner } from '@astraprotocol/astra-ui' import JsonView from 'components/CodeView/JsonView' import SolidityView from 'components/CodeView/SolidityView' import Row from 'components/Grid/Row' +import { LinkText } from 'components/Typography/LinkText' import ModalContractVerify from 'components/VerifyContract' import { useState } from 'react' +import { LinkMaker } from 'utils/helper' import useContractCode from 'views/accounts/hook/useContractCode' import ContractConstructorArguments from './ContructorArgs' import ContractCodeOverview from './Overview' @@ -40,6 +42,19 @@ const ContractCodeTab = ({ address }: Props) => {
) : contractCode ? (
+
+ Contract is not verified.{' '} + {contractCode.SameBytecodeAddress && ( + <> + However, we found a verified contract with the same bytecode{' '} + + {contractCode.SameBytecodeAddress} + + + )} + . All metadata displayed below is from that contract. In order to verify current contract, click + Verify & Publish button. +