Commit ba1a213f authored by tom goriunov's avatar tom goriunov Committed by GitHub

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

Fixes #2389
parent 4d0f5122
...@@ -5,7 +5,7 @@ export interface VerifiedContract { ...@@ -5,7 +5,7 @@ export interface VerifiedContract {
address: AddressParam; address: AddressParam;
certified?: boolean; certified?: boolean;
coin_balance: string; coin_balance: string;
compiler_version: string; compiler_version: string | null;
language: 'vyper' | 'yul' | 'solidity'; language: 'vyper' | 'yul' | 'solidity';
has_constructor_args: boolean; has_constructor_args: boolean;
optimization_enabled: boolean; optimization_enabled: boolean;
......
...@@ -66,11 +66,13 @@ const VerifiedContractsTableItem = ({ data, isLoading }: Props) => { ...@@ -66,11 +66,13 @@ const VerifiedContractsTableItem = ({ data, isLoading }: Props) => {
<Td> <Td>
<Flex flexWrap="wrap" columnGap={ 2 }> <Flex flexWrap="wrap" columnGap={ 2 }>
<Skeleton isLoaded={ !isLoading } textTransform="capitalize" my={ 1 }>{ data.language }</Skeleton> <Skeleton isLoaded={ !isLoading } textTransform="capitalize" my={ 1 }>{ data.language }</Skeleton>
<Skeleton isLoaded={ !isLoading } color="text_secondary" wordBreak="break-all" my={ 1 } cursor="pointer"> { data.compiler_version && (
<Tooltip label={ data.compiler_version }> <Skeleton isLoaded={ !isLoading } color="text_secondary" wordBreak="break-all" my={ 1 } cursor="pointer">
<span>{ data.compiler_version.split('+')[0] }</span> <Tooltip label={ data.compiler_version }>
</Tooltip> <span>{ data.compiler_version.split('+')[0] }</span>
</Skeleton> </Tooltip>
</Skeleton>
) }
</Flex> </Flex>
{ data.zk_compiler_version && ( { data.zk_compiler_version && (
<Flex flexWrap="wrap" columnGap={ 2 } my={ 1 }> <Flex flexWrap="wrap" columnGap={ 2 } my={ 1 }>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment