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 {
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>
{ 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 }>
......
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