mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
Zilliqa: "Verified contracts" page crashes on desktop (#2393)
Fixes #2389
This commit is contained in:
@@ -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 }>
|
||||
|
||||
Reference in New Issue
Block a user