Zilliqa: "Verified contracts" page crashes on desktop (#2393)

Fixes #2389
This commit is contained in:
tom goriunov
2024-11-13 18:54:50 +01:00
committed by GitHub
parent 7efc6261a2
commit 7e4ae9bbd6
2 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ export interface VerifiedContract {
address: AddressParam;
certified?: boolean;
coin_balance: string;
compiler_version: string;
compiler_version: string | null;
language: 'vyper' | 'yul' | 'solidity';
has_constructor_args: boolean;
optimization_enabled: boolean;
@@ -66,11 +66,13 @@ const VerifiedContractsTableItem = ({ data, isLoading }: Props) => {
<Td>
<Flex flexWrap="wrap" columnGap={ 2 }>
<Skeleton isLoaded={ !isLoading } textTransform="capitalize" my={ 1 }>{ data.language }</Skeleton>
<Skeleton isLoaded={ !isLoading } color="text_secondary" wordBreak="break-all" my={ 1 } cursor="pointer">
<Tooltip label={ data.compiler_version }>
<span>{ data.compiler_version.split('+')[0] }</span>
</Tooltip>
</Skeleton>
{ data.compiler_version && (
<Skeleton isLoaded={ !isLoading } color="text_secondary" wordBreak="break-all" my={ 1 } cursor="pointer">
<Tooltip label={ data.compiler_version }>
<span>{ data.compiler_version.split('+')[0] }</span>
</Tooltip>
</Skeleton>
) }
</Flex>
{ data.zk_compiler_version && (
<Flex flexWrap="wrap" columnGap={ 2 } my={ 1 }>