Skip to content

Commit

Permalink
fix: bug not show same contract code address
Browse files Browse the repository at this point in the history
  • Loading branch information
tiendn committed Jul 26, 2023
1 parent 838b22d commit e1d3c76
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions views/accounts/tabs/ContractCodeTab/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface Props {
address: string
}

const VerifiedAlert = contractCode => (
const VerifiedAlert = ({ contractCode }) => (
<div className="text text-sm contrast-color-30 margin-bottom-md">
Contract is not verified.{' '}
{contractCode.SameBytecodeAddress && (
Expand All @@ -23,13 +23,12 @@ const VerifiedAlert = contractCode => (
<LinkText href={LinkMaker.address(contractCode.SameBytecodeAddress)}>
{contractCode.SameBytecodeAddress}
</LinkText>
.{' '}
. <br />
</>
)}
In order to verify this contract, click Verify & Publish button.
</div>
)

const ContractCodeTab = ({ address }: Props) => {
const { contractCode, mutate, isValidating } = useContractCode(address)
const [verifyVisible, setVerifiVisible] = useState(false)
Expand All @@ -41,7 +40,6 @@ const ContractCodeTab = ({ address }: Props) => {
mutate()
setVerifiVisible(false)
}


return (
<div>
Expand Down

0 comments on commit e1d3c76

Please sign in to comment.